/* Alcove - landing page
   Tokens first, then nav, hero, search, listings, footer. Light theme only. */

:root {
  --ink:      #191714;
  --ink-soft: #5d574e;
  --paper:    #faf7f2;
  --card:     #ffffff;
  --line:     #e4ddd1;
  --accent:   #b8532c;
  --accent-d: #973f1d;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans:  system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --gut: clamp(20px, 5vw, 64px);
  --max: 1220px;
  --r:   14px;

  --shadow-s: 0 1px 2px rgba(25, 23, 20, .06), 0 2px 8px rgba(25, 23, 20, .05);
  --shadow-l: 0 18px 50px rgba(25, 23, 20, .16), 0 2px 10px rgba(25, 23, 20, .08);

  /* stand-in behind any photo that has not loaded */
  --plate: linear-gradient(140deg, #cfc6b6, #a9a396 55%, #8d8578);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -.01em; }

.sr, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip:focus {
  position: fixed; inset: 12px auto auto 12px; z-index: 99;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: 8px;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 14px; font-weight: 500;
  border: 1px solid transparent; border-radius: 999px;
  padding: 10px 18px; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn--ghost  { color: inherit; }
.btn--ghost:hover { color: var(--accent); }
.btn--solid  { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--accent); }
.btn:active { transform: translateY(1px); }

/* ---------- nav ---------- */

.nav {
  position: fixed; inset: 0 0 auto; z-index: 20;
  color: #fff;
  transition: background-color .3s ease, color .3s ease, box-shadow .3s ease;
}
.nav__inner {
  max-width: var(--max); margin: 0 auto;
  padding: 18px var(--gut);
  display: flex; align-items: center; gap: 28px;
  transition: padding .3s ease;
}

.nav.is-stuck {
  background: rgba(250, 247, 242, .92);
  backdrop-filter: saturate(180%) blur(12px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.nav.is-stuck .nav__inner { padding-top: 12px; padding-bottom: 12px; }

.mark { display: flex; align-items: center; gap: 9px; margin-right: auto; }
.mark__glyph {
  width: 22px; height: 22px; fill: none;
  stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.mark__word {
  font-family: var(--serif); font-size: 23px;
  letter-spacing: .01em;
}

.nav__links { display: flex; gap: 26px; font-size: 15px; }
.nav__links a { position: relative; padding: 4px 0; }
.nav__links a::after {
  content: ""; position: absolute; inset: auto 0 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .22s ease;
}
.nav__links a:hover::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: 10px; }

.nav__toggle {
  display: none; width: 42px; height: 42px;
  background: none; border: 0; cursor: pointer; color: inherit;
}
.nav__bars, .nav__bars::before, .nav__bars::after {
  display: block; width: 20px; height: 1.5px; background: currentColor;
  transition: transform .22s ease, opacity .22s ease;
}
.nav__bars { margin: 0 auto; position: relative; }
.nav__bars::before, .nav__bars::after { content: ""; position: absolute; }
.nav__bars::before { top: -6px; }
.nav__bars::after  { top: 6px; }
.nav__toggle[aria-expanded="true"] .nav__bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__bars::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__bars::after  { transform: translateY(-6px) rotate(-45deg); }

.nav__drawer {
  background: var(--paper); color: var(--ink);
  border-top: 1px solid var(--line);
  padding: 12px var(--gut) 22px;
  display: grid; gap: 4px;
}
.nav__drawer[hidden] { display: none; }
.nav__drawer a { padding: 12px 0; border-bottom: 1px solid var(--line); }
.nav__drawer .btn { margin-top: 14px; border-bottom: 0; justify-self: start; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex; align-items: flex-end;
  padding: 160px var(--gut) clamp(40px, 6vw, 72px);
  color: #fff;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; background: var(--plate); }
.hero__img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
  animation: heroSettle 2.4s cubic-bezier(.2, .7, .2, 1) forwards;
}
@keyframes heroSettle { to { transform: scale(1); } }

.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(18, 16, 14, .88) 0%, rgba(18, 16, 14, .45) 42%, rgba(18, 16, 14, .18) 70%),
    linear-gradient(to right, rgba(18, 16, 14, .55), rgba(18, 16, 14, 0) 60%);
}

.hero__body { position: relative; width: 100%; max-width: var(--max); margin: 0 auto; }

.eyebrow {
  margin: 0 0 18px;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(40px, 7vw, 82px);
  line-height: 1.02; letter-spacing: -.02em;
  max-width: 15ch;
}

.hero__sub {
  margin: 20px 0 0; max-width: 48ch;
  font-size: clamp(15px, 1.5vw, 18px);
  color: rgba(255, 255, 255, .84);
}

/* ---------- search ---------- */

.search { margin-top: clamp(28px, 4vw, 44px); max-width: 980px; }

.search__tabs { display: flex; gap: 6px; margin-bottom: -1px; }
.tab {
  font: inherit; font-size: 14px; font-weight: 500;
  padding: 11px 22px; cursor: pointer;
  color: #fff; background: rgba(255, 255, 255, .14);
  border: 0; border-radius: 12px 12px 0 0;
  backdrop-filter: blur(8px);
  transition: background-color .2s ease, color .2s ease;
}
.tab:hover { background: rgba(255, 255, 255, .26); }
.tab.is-on { background: var(--card); color: var(--ink); }

.search__row {
  background: var(--card);
  border-radius: 0 var(--r) var(--r) var(--r);
  box-shadow: var(--shadow-l);
  padding: 10px;
  display: flex; align-items: stretch; gap: 6px;
}

.field {
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px 16px; border-radius: 10px;
  min-width: 0; flex: 0 0 auto;
  transition: background-color .18s ease;
}
.field:hover { background: #f6f2ea; }
.field--grow { flex: 1 1 auto; }
.field + .field { box-shadow: -1px 0 0 var(--line); }

.field__label {
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-soft);
}
.field__input {
  font: inherit; font-size: 15px; color: var(--ink);
  border: 0; background: none; padding: 2px 0; width: 100%;
  appearance: none;
}
.field__input:focus { outline: 0; }
.field:focus-within { background: #f6f2ea; }
.field__input::placeholder { color: #a79f92; }

.btn--search {
  flex: 0 0 auto; padding: 0 30px;
  background: var(--accent); color: #fff;
  border-radius: 10px; font-size: 15px;
}
.btn--search:hover { background: var(--accent-d); }
.btn--search svg {
  width: 17px; height: 17px; fill: none;
  stroke: currentColor; stroke-width: 1.9; stroke-linecap: round;
}

/* ---------- narrow ---------- */

@media (max-width: 900px) {
  .nav__links, .nav__actions { display: none; }
  .nav__toggle { display: block; }
  .search__row { flex-wrap: wrap; }
  .field { flex: 1 1 140px; }
  .field + .field { box-shadow: none; }
  .field--grow { flex: 1 1 100%; }
  .btn--search { flex: 1 1 100%; padding: 14px 24px; }
}

@media (max-width: 620px) {
  .hero { min-height: 0; padding-top: 120px; }
  .hero__title { max-width: none; }
  .tab { flex: 1; padding: 11px 10px; }
}
