/* The Shopfront: shared tokens and chrome copied from fourkilobytes-site/public/styles.css. */
/* The Shopfront: a painted fascia, a lettered window, a plate by the door. */
:root {
  --fascia: #1d3557;      /* painted sign board, window frame */
  --fascia-rail: #13243c; /* the shadowed rail under the fascia */
  --cream: #f3ecd9;       /* sign lettering, window cards */
  --brass: #c8a24a;       /* small fascia lettering, the door-plate button */
  --glass: #ffffff;       /* the window */
  --stone: #e3e5e6;       /* the pavement */
  --ink: #161616;
  --ink-soft: #5b6472;
  --keyline: #1d3557;
  --measure: 62ch;
  --sign: "Bitter", Rockwell, "Roboto Slab", Georgia, serif;
  --text: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--fascia); color: var(--cream); }

a { color: var(--fascia); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }

/* ---------- the fascia and the nav strip ---------- */
.fascia-band { background: var(--fascia); border-bottom: .5rem solid var(--fascia-rail); padding-inline: 1rem; }
.fascia {
  max-width: 72rem; margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 0;
}
.brand { display: inline-flex; align-items: center; gap: .75rem; min-height: 2.75rem; min-width: 0; color: var(--cream); text-decoration: none; }
.brand svg { flex: none; }
.brand svg path { fill: var(--cream); }
.brand svg .brand-light { fill: var(--brass); }
.brand-words { display: grid; line-height: 1; }
.brand-name {
  font-family: var(--sign); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.3rem, 4.6vw, 2.6rem); letter-spacing: .07em; white-space: nowrap;
}
.brand-sub {
  margin-top: .4rem; color: var(--brass); font-weight: 600; text-transform: uppercase;
  font-size: .72rem; letter-spacing: .16em;
}
@media (max-width: 30rem) {
  .fascia { padding: .85rem 0; gap: .75rem; }
  .brand { gap: .55rem; }
  .brand-sub { display: none; }
  .brand svg { width: auto; height: 26px; }
  .brand-name { font-size: 1.3rem; letter-spacing: .06em; }
}

/* the strip stays put as the page scrolls: the mark, the two doors, the number and Book */
.nav-strip {
  position: sticky; top: 0; z-index: 10;
  background: var(--stone); padding: .3rem 1rem;
  border-bottom: 3px solid var(--fascia);
}
.strip-mark { flex: none; }
/* the strip's mark fades in as the fascia scrolls away, so the sign is never shown twice;
   browsers without scroll-driven animations just show it */
/* the fascia is about 5rem tall on phones and 6.5rem on desktop: fade across the second half of that */
@supports (animation-timeline: scroll()) {
  .strip-mark { animation: mark-in linear both; animation-timeline: scroll(root block); animation-range: 3rem 6.5rem; }
  .strip-mark:focus-visible { animation: none; }
  @media (max-width: 30rem) { .strip-mark { animation-range: 2.5rem 5rem; } }
}
@keyframes mark-in { from { opacity: 0; } to { opacity: 1; } }
.strip-mark svg path { fill: var(--fascia); }
.strip-mark svg .brand-light { fill: var(--brass); }
.nav .strip-book { color: var(--ink); min-height: 2.5rem; }
.nav .strip-book:hover { color: var(--ink); }
.nav {
  max-width: 72rem; margin-inline: auto;
  display: flex; align-items: center; gap: 1.5rem;
}
.nav a {
  display: inline-flex; align-items: center; min-height: 2.75rem;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap;
}
.nav a:hover { color: var(--fascia); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--fascia); }
/* the number on a plate by the door */
.nav .nav-tel { margin-left: auto; min-height: 2.5rem; padding: 0 .75rem; background: var(--cream); box-shadow: inset 0 0 0 2px var(--fascia); color: var(--fascia); font-family: var(--sign); font-weight: 700; font-size: 1.05rem; }
.nav .nav-tel:hover { background: var(--glass); }
/* phones: the plate says Ring and the button says Book; the number stays in the link's name */
@media (max-width: 40rem) {
  /* the monogram is 63px wide; with five items it no longer fits a phone, and the fascia above carries the name */
  .nav .strip-mark { display: none; }
  .nav { gap: .5rem; }
  .nav a { font-size: .86rem; }
  .nav .tel-num, .nav .strip-book .long { display: none; }
  .nav .nav-tel { padding: 0 .6rem; }
  .nav .strip-book { padding: .5rem .7rem; }
}
@media (max-width: 24rem) { .nav { gap: .4rem; } .nav a { font-size: .82rem; } .nav .nav-tel { padding: 0 .5rem; } .nav .strip-book { padding: .5rem .6rem; } }
@media (max-width: 22rem) { .brand-name { font-size: 1.05rem; letter-spacing: .04em; } .nav-strip { padding-inline: .6rem; } .nav { gap: .25rem; } .nav a { font-size: .76rem; } .nav .nav-tel { padding: 0 .4rem; } .nav .strip-book { padding: .5rem .5rem; } }

/* ---------- the window ---------- */
main {
  width: min(100% - 1rem, 72rem); margin: 1.25rem auto 0; overflow: clip;
  background: var(--glass);
  border: .5rem solid var(--fascia); border-bottom-width: 0;
}
@media (min-width: 48rem) { main { width: min(100% - 3rem, 72rem); border-width: .875rem; border-bottom-width: 0; margin-top: 2rem; } }

main > section { width: min(100% - 2rem, 44rem); margin-inline: auto; padding: 3.25rem 0 1rem; }
/* glazing bars between the panes run the full width of the window */
main > section + section {
  margin-top: 2.5rem; border-top: 4px solid var(--fascia);
  border-image: linear-gradient(var(--fascia), var(--fascia)) 1 / 4px 0 0 0 / 0 100vw;
}
main > section + section.book { border-top: 0; border-image: none; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--sign); color: var(--fascia); line-height: 1.08; margin: 0 0 1rem; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 6.4vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.35rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 700; line-height: 1.25; margin-bottom: .4rem; }
p, li { max-width: var(--measure); }
p { margin: 0 0 1rem; }
.lede { font-size: 1.2rem; line-height: 1.5; }
strong { font-weight: 700; }

/* ---------- buttons: painted plates, square corners ---------- */
.button {
  display: inline-flex; align-items: center; min-height: 3rem;
  background: var(--fascia); color: var(--cream); text-decoration: none;
  padding: .8rem 1.3rem; font-weight: 700; font-size: 1rem; letter-spacing: .01em;
}
.button:hover { background: var(--fascia-rail); color: var(--cream); }
.button-line { background: transparent; color: var(--fascia); box-shadow: inset 0 0 0 2px var(--fascia); }
.button-line:hover { background: var(--cream); color: var(--fascia); }
.button-small { min-height: 2.75rem; padding: .55rem 1rem; font-size: .95rem; }
.strip-book { background: var(--brass); color: var(--ink); white-space: nowrap; }
.strip-book:hover { background: var(--cream); color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; margin-top: 1.5rem; }

/* ---------- demo cards ---------- */
.door-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
.door { background: var(--cream); border: 2px solid var(--keyline); padding: 1.3rem 1.5rem 1.1rem; display: flex; flex-direction: column; }
.door h3 { margin-bottom: .3rem; }
.door h3 a { color: var(--fascia); text-decoration: none; }
.door h3 a:hover { text-decoration: underline; }
/* the price on its own line under the door's name, so it never wraps against the name on a phone */
.door-price { display: block; font-family: var(--sign); font-weight: 800; font-size: 1.05rem; color: var(--ink); margin-bottom: .6rem; }
.door p { margin-bottom: .6rem; }
.door-link { margin: auto 0 0; font-weight: 600; }

/* ---------- book: the plate by the door ---------- */
main > section.book {
  width: auto; margin: 2.5rem 0 0; padding: 3rem 1rem 3.25rem;
  background: var(--fascia); color: var(--cream);
}
.book > * { width: 100%; max-width: 44rem; margin-left: auto; margin-right: auto; }
.book > p { max-width: 44rem; }
.book h2 { color: var(--cream); }
.book p { color: var(--cream); }
.book a:not(.button) { color: var(--cream); }
.book .button { background: var(--brass); color: var(--ink); }
.book .button:hover { background: var(--cream); color: var(--ink); }
.book .button-line { background: var(--cream); color: var(--fascia); box-shadow: inset 0 0 0 2px var(--brass); font-family: var(--sign); }
.book .button-line:hover { background: var(--glass); color: var(--fascia); }
.book-note { margin-top: 1.25rem; font-size: .95rem; opacity: .9; }

/* ---------- the pavement ---------- */
footer { width: min(100% - 2rem, 72rem); margin-inline: auto; padding: 1.5rem 0 3rem; color: var(--ink-soft); font-size: .9rem; }
footer p { margin: 0 0 .4rem; }
footer a { color: var(--ink); }
