/* Apple-ish: near-white ground, one blue accent, tight display type,
   generous air, hairline rules, no decorative color. */

:root {
  --bg: #fbfbfd;
  --panel: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --hairline: rgba(0, 0, 0, .09);
  --accent: #0071e3;
  --fill: #f5f5f7;
  --nav: rgba(251, 251, 253, .72);
  --shadow: 0 2px 14px rgba(0, 0, 0, .045);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --panel: #1d1d1f;
    --ink: #f5f5f7;
    --muted: #86868b;
    --line: #424245;
    --hairline: rgba(255, 255, 255, .12);
    --accent: #2997ff;
    --fill: #2c2c2e;
    --nav: rgba(22, 22, 23, .72);
    --shadow: none;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.47 -apple-system, "SF Pro Text", "SF Pro Display",
        BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: -.012em;
  -webkit-font-smoothing: antialiased;
}

.sprite { display: none; }

.icon {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon.flip { transform: rotate(180deg); }

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

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--nav);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 3rem;
  display: flex;
  align-items: center;
}
.nav-title, .nav-back {
  color: var(--ink);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: -.01em;
  display: inline-flex;
  align-items: center;
  gap: .1rem;
}
.nav-back .icon { width: 19px; height: 19px; stroke-width: 1.9; color: var(--accent); }
.nav-back span { margin-left: .1rem; }

/* --- shell ----------------------------------------------------------- */

.wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.25rem 5rem;
}

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

.hero {
  text-align: center;
  padding: 3.25rem 0 2rem;
}

h1 {
  margin: 0;
  font-size: clamp(2.35rem, 8.5vw, 3.25rem);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -.028em;
}

.hero-icon {
  width: 42px;
  height: 42px;
  stroke-width: 1.4;
  color: var(--muted);
  margin-bottom: 1.1rem;
}

.lede {
  margin: .85rem auto 0;
  max-width: 28rem;
  font-size: 1.1875rem;
  line-height: 1.42;
  color: var(--muted);
  letter-spacing: -.014em;
}

.dates {
  display: inline-block;
  margin: 1.5rem 0 0;
  padding: .3rem .85rem;
  border: 1px solid var(--line);
  border-radius: 980px;
  font-size: .8125rem;
  color: var(--muted);
  letter-spacing: 0;
}

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

.quicknav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
  gap: .5rem;
  margin-bottom: 3.5rem;
}
.quicknav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 5.25rem;
  padding: .9rem .5rem;
  background: var(--panel);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform .2s ease;
}
.quicknav a:hover { transform: translateY(-2px); }
.quicknav a:active { transform: translateY(0); }
.quicknav .icon { width: 24px; height: 24px; stroke-width: 1.45; color: var(--accent); }
.quicknav span {
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: -.008em;
  text-align: center;
  line-height: 1.25;
}

/* --- blocks ---------------------------------------------------------- */

.block {
  /* clears the sticky nav when an anchor is jumped to */
  scroll-margin-top: 3.75rem;
  margin-bottom: 3.5rem;
}
.block:last-of-type { margin-bottom: 0; }

.block-head { margin-bottom: 1.1rem; }
.block-icon {
  width: 30px;
  height: 30px;
  stroke-width: 1.45;
  color: var(--muted);
  margin-bottom: .5rem;
}
.block-blurb {
  margin: .3rem 0 0;
  color: var(--muted);
  font-size: .9375rem;
  line-height: 1.42;
}

/* --- panels ---------------------------------------------------------- */

.panel {
  background: var(--panel);
  border-radius: 18px;
  padding: 1.4rem 1.5rem;
  margin-bottom: .85rem;
  box-shadow: var(--shadow);
}
.panel:last-of-type { margin-bottom: 0; }

h2 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -.022em;
  line-height: 1.15;
}

h3 {
  margin: 0 0 1.05rem;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -.016em;
}

/* --- key rows (door code, wi-fi) ------------------------------------- */

.keyrow {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .8rem 0;
  border-top: 1px solid var(--hairline);
}
.keyrow:first-of-type { border-top: 0; padding-top: 0; }
.keyrow:last-child { padding-bottom: 0; }
.keyrow .icon { width: 21px; height: 21px; color: var(--muted); }
.keyrow-label { flex: 1; min-width: 0; font-weight: 500; }
.keyrow-label small {
  display: block;
  font-weight: 400;
  font-size: .8125rem;
  line-height: 1.35;
  color: var(--muted);
  margin-top: .15rem;
}
.keyrow code {
  flex: none;
  font: 500 .9375rem/1 ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  background: var(--fill);
  padding: .38rem .6rem;
  border-radius: 8px;
  letter-spacing: 0;
}

/* --- lists ----------------------------------------------------------- */

.items, .daily, .contacts, .roster {
  list-style: none;
  margin: 0;
  padding: 0;
}

.items li {
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: .72rem;
}
.items li:last-child { margin-bottom: 0; }
.items li::before {
  content: "";
  position: absolute;
  left: .1rem;
  top: .66em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted);
}

.daily li {
  padding: .8rem 0;
  border-top: 1px solid var(--hairline);
}
.daily li:first-child { border-top: 0; padding-top: 0; }
.daily li:last-child { padding-bottom: 0; }
.when {
  display: block;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -.004em;
  margin-bottom: .12rem;
}

/* --- away (pets travelling with us this trip) ------------------------ */

.quicknav a.is-away { opacity: .5; }
.quicknav a.is-away em {
  font-style: normal;
  font-size: .6875rem;
  color: var(--muted);
  letter-spacing: 0;
}

.badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: .1rem;
  padding: .22rem .6rem;
  border-radius: 980px;
  background: var(--fill);
  color: var(--muted);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
}

.away-note {
  margin: 0 0 1.1rem;
  padding: .9rem 1.05rem;
  background: var(--fill);
  border-radius: 12px;
  color: var(--muted);
  font-size: .9375rem;
  line-height: 1.45;
}

/* Dim the detail, but keep it fully readable for next time. */
.block-away .roster,
.block-away .panel { opacity: .62; }
.block-away .roster:hover,
.block-away .panel:hover { opacity: 1; }

/* --- back to top ----------------------------------------------------- */

.totop {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  margin-top: 1.1rem;
  color: var(--muted);
  text-decoration: none;
  font-size: .8125rem;
}
.totop .icon { width: 14px; height: 14px; stroke-width: 2; }
.totop:hover { color: var(--accent); }

/* --- roster ---------------------------------------------------------- */

.roster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: 1.6rem 1rem;
  margin-bottom: 1.5rem;
}
.roster li { display: flex; flex-direction: column; }
.roster img, .no-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: .65rem;
  background: var(--fill);
}
.no-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--line);
}
.no-photo .icon { width: 30px; height: 30px; }
.roster strong { font-size: .9375rem; font-weight: 600; letter-spacing: -.014em; }
.roster small {
  color: var(--muted);
  font-size: .8125rem;
  line-height: 1.36;
  margin-top: .1rem;
}

/* --- contacts -------------------------------------------------------- */

.contacts li { border-top: 1px solid var(--hairline); }
.contacts li:first-child { border-top: 0; }
.contacts a, .contacts .contact-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: .8rem 0;
  text-decoration: none;
  color: inherit;
}
.contacts li:first-child a, .contacts li:first-child .contact-row { padding-top: 0; }
.contacts li:last-child a, .contacts li:last-child .contact-row { padding-bottom: 0; }
.contact-name { font-weight: 500; }
.contacts small { grid-column: 1; color: var(--muted); font-size: .8125rem; }
.phone {
  grid-row: 1 / span 2;
  grid-column: 2;
  color: var(--accent);
  font-weight: 400;
  white-space: nowrap;
  padding-left: 1rem;
}

/* --- note ------------------------------------------------------------ */

.note {
  margin: 1.1rem 0 0;
  padding: .9rem 1.05rem;
  background: var(--fill);
  border-radius: 12px;
  font-size: .9375rem;
  line-height: 1.45;
}
.block > .note { margin-top: .85rem; }

/* --- sign in --------------------------------------------------------- */

.signin {
  max-width: 24rem;
  margin: 0 auto;
  padding-top: 5.5rem;
  text-align: center;
}
.signin .lede { margin-top: .7rem; font-size: 1.0625rem; }
.signin form { margin-top: 2.25rem; }

/* floating label, the way Apple's ID form does it */
.field { position: relative; }
.field input {
  width: 100%;
  height: 3.4rem;
  padding: 1.15rem .95rem .3rem;
  font-size: 1.0625rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  transition: border-color .18s ease;
}
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 113, 227, .16); }
.field label {
  position: absolute;
  left: .95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 1.0625rem;
  pointer-events: none;
  transition: transform .16s ease, font-size .16s ease;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label {
  transform: translateY(-1.35rem);
  font-size: .75rem;
}

button {
  width: 100%;
  margin-top: .8rem;
  height: 3.1rem;
  font: 500 1.0625rem/1 inherit;
  font-family: inherit;
  letter-spacing: -.012em;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 980px;
  cursor: pointer;
  transition: opacity .18s ease;
}
button:hover { opacity: .88; }

/* --- misc ------------------------------------------------------------ */

.flash {
  margin: 1.5rem 0 0;
  padding: .85rem 1.05rem;
  background: var(--fill);
  border-radius: 12px;
  font-size: .9375rem;
  text-align: center;
}

.foot {
  margin-top: 2.5rem;
  text-align: center;
  font-size: .8125rem;
  color: var(--muted);
}
.foot a { color: var(--accent); text-decoration: none; }
.foot a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
