/* The public site: knowmetravel.com /, /about, /privacy, /terms, and Help's header and footer.
   docs/MARKETING-SITE.md is the brief; docs/specs/17-marketing-site.md the spec. Charcoal on linen, an editorial serif,
   no radius, no shadows. Phone first (390px), then real columns from 900px for the people reading it on a laptop. */

@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/newsreader.woff2) format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/newsreader-italic.woff2) format('woff2'); }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/figtree.woff2) format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/nunito-800.woff2) format('woff2'); }

:root {
  --linen: #f3eee7;
  --linen-deep: #e9e2d8;
  --ink: #313131;
  --soft: #585858;
  --faint: #aaa6a3;
  --white: #fff;
  --prussian: #1c4766;
  --yellow: #ffbe33;
  /* The app's review tints (app/web/src/styles.css), for the ruler. */
  --t-miss: #d03b3b; --t-miss-soft: #fbe5e5; --t-miss-ink: #9f2424;
  --t-part: #fab219; --t-part-soft: #fdf1d6; --t-part-ink: #7a5300;
  --t-full: #0ca30c; --t-full-soft: #e2f4e2; --t-full-ink: #0b6b0b;
  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --sans: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --gutter: 16px;
  --wrap: 1200px;
  --rhythm: 56px;
  --bar-h: 92px;
}
@media (min-width: 900px) {
  :root { --gutter: 40px; --rhythm: 96px; --bar-h: 72px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: calc(var(--bar-h) + 8px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--linen); color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: var(--prussian); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--prussian); outline-offset: 3px; }
.dark :focus-visible { outline-color: var(--yellow); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 44px; line-height: 1.05; }
h2 { font-size: 34px; line-height: 1.12; }
h3 { font-size: 22px; line-height: 1.25; }
p { margin: 0 0 14px; }
@media (min-width: 900px) {
  h1 { font-size: 76px; }
  h2 { font-size: 48px; }
  h3 { font-size: 24px; }
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: 62ch; }
.eyebrow { font: 500 12px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--soft); margin: 0 0 14px; }
.lede { font-size: 19px; line-height: 1.55; color: var(--ink); }
.muted { color: var(--soft); }
.rule { display: block; width: 48px; height: 3px; background: var(--yellow); border: 0; margin: 18px 0 20px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--linen); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- buttons --------------------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px;
  font: 500 15px/1.2 var(--sans); letter-spacing: .04em; text-decoration: none;
  background: var(--ink); color: var(--linen); border: 1px solid var(--ink); border-radius: 0; cursor: pointer;
}
.btn:hover { background: #1f1f1f; text-decoration: none; }
.btn.secondary { background: transparent; color: var(--ink); }
.btn.secondary:hover { background: var(--ink); color: var(--linen); }
.dark .btn { background: var(--linen); color: var(--ink); border-color: var(--linen); }
.dark .btn.secondary { background: transparent; color: var(--linen); }
.dark .btn.secondary:hover { background: var(--linen); color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---- the bar --------------------------------------------------------------------------------------- */
.bar { position: sticky; top: 0; z-index: 5; background: var(--linen); border-bottom: 1px solid var(--linen-deep); }
.bar-in { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "brand . signin" "nav nav nav"; align-items: center; column-gap: 16px; padding-top: 12px; padding-bottom: 6px; }
.brand { grid-area: brand; display: inline-flex; line-height: 0; }
.logo { height: 24px; width: auto; }
.logo .word { fill: var(--prussian); }
.dark .logo .word { fill: var(--linen); }
.signin { grid-area: signin; font: 500 14px/1 var(--sans); letter-spacing: .04em; color: var(--ink); text-decoration: none; padding: 10px 0 10px 12px; }
.signin:hover { text-decoration: underline; }
.site-nav { grid-area: nav; display: flex; gap: 18px; margin-top: 8px; overflow: hidden; }
.site-nav a { font: 400 14px/1 var(--sans); color: var(--soft); text-decoration: none; padding: 8px 0; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }
@media (min-width: 900px) {
  .bar-in { grid-template-columns: auto 1fr auto; grid-template-areas: "brand nav signin"; height: var(--bar-h); padding-top: 0; padding-bottom: 0; }
  .logo { height: 32px; }
  .site-nav { margin: 0 0 0 48px; gap: 32px; }
  .site-nav a { font-size: 15px; }
}

/* ---- the first screen ------------------------------------------------------------------------------ */
.hero { position: relative; min-height: calc(100svh - var(--bar-h)); display: flex; align-items: flex-end; overflow: hidden; background: var(--linen-deep); }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero picture img { object-fit: cover; object-position: 50% 35%; }
/* On a phone the panel covers most of the screen, so the room photo fills only the top: a landscape crop,
   so the bed and the window both show above the panel. */
@media (max-width: 899px) {
  .hero picture { bottom: auto; height: 60%; }
  .hero picture img { object-position: 50% 40%; }
}
.hero-panel { position: relative; width: 100%; margin: 0 10px 10px; padding: 22px 18px 16px; background: var(--linen); }
.hero h1 { font-size: 46px; }
.hero .rule { margin: 12px 0 12px; }
.hero .lede { font-size: 16px; line-height: 1.5; margin: 0 0 14px; }
@media (min-width: 900px) {
  .hero { align-items: center; }
  .hero-panel { width: min(560px, 46vw); margin: 0 0 0 max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); padding: 48px 48px 36px; }
  .hero h1 { font-size: 80px; }
  .hero .rule { margin: 22px 0 22px; }
  .hero .lede { font-size: 19px; margin-bottom: 26px; }
}
@media (min-width: 900px) and (max-height: 760px) {
  .hero-panel { padding: 32px 40px 24px; }
  .hero h1 { font-size: 64px; }
}

/* The rotating display: three cards in one cell, one shown at a time (site.js). Without JavaScript, or with
   reduced motion, all three are stacked. */
.rotator { border-top: 1px solid var(--linen-deep); padding-top: 14px; }
.cards { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.card .eyebrow { margin: 0 0 4px; }
.card h2 { font-size: 24px; line-height: 1.2; margin: 0 0 6px; }
.card p { font-size: 15px; line-height: 1.5; color: var(--soft); margin: 0 0 6px; }
.card a { font: 500 14px/1.4 var(--sans); letter-spacing: .02em; }
.rotator-controls { display: none; align-items: center; gap: 4px; margin-top: 8px; }
.rotator-controls button { background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink); font: 500 13px/1 var(--sans); }
.dot { width: 32px; height: 32px; display: inline-grid; place-items: center; }
.dot::before { content: ''; width: 8px; height: 8px; border: 1px solid var(--ink); background: transparent; }
.dot[aria-current="true"]::before { background: var(--ink); }
.pause { margin-left: auto; padding: 8px 0 8px 8px !important; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 900px) {
  .rotator { padding-top: 20px; }
  .card h2 { font-size: 30px; }
  .card p { font-size: 16px; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .cards { gap: 0; }
  /* The old card fades out first; the new one slides in after it, so the two never overlap. */
  .js .cards > li { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateX(24px); transition: opacity .3s ease, transform 0s .3s, visibility 0s .3s; }
  .js .cards > li.on { opacity: 1; visibility: visible; transform: none; transition: opacity .6s ease .3s, transform .6s ease .3s, visibility 0s; }
  .js .rotator-controls { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
  .cards { gap: 10px; }
  .card p + p { display: none; }
}

/* ---- sections -------------------------------------------------------------------------------------- */
.section { padding: var(--rhythm) 0; }
.section + .section { border-top: 1px solid var(--linen-deep); }
.section.white { background: var(--white); }
.dark { background: #232323; color: var(--linen); }
.dark h2, .dark h3 { color: var(--linen); }
.dark .eyebrow, .dark .muted, .dark p { color: #d9d3cb; }
.dark a { color: var(--linen); }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head p { font-size: 18px; color: var(--soft); }
.dark .section-head p { color: #d9d3cb; }

.split { display: grid; gap: 32px; }
.split figure { margin: 0; }
.split img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 6fr; gap: 72px; align-items: center; }
  .split.flip { grid-template-columns: 6fr 5fr; }
  .split.flip > figure { order: 2; }
}

.points { display: grid; gap: 28px; margin: 28px 0 0; padding: 0; list-style: none; }
.points li { border-top: 1px solid var(--ink); padding-top: 14px; }
.dark .points li { border-top-color: #6b6762; }
.points h3 { font-size: 22px; margin-bottom: 6px; }
.points p { color: var(--soft); margin: 0; font-size: 16px; }
.dark .points p { color: #d9d3cb; }
@media (min-width: 640px) { .points.two { grid-template-columns: 1fr 1fr; column-gap: 36px; } }
@media (min-width: 900px) { .points.four { grid-template-columns: repeat(4, 1fr); column-gap: 32px; } }
@media (min-width: 640px) and (max-width: 899px) { .points.four { grid-template-columns: 1fr 1fr; column-gap: 32px; } }

.tiles { display: grid; gap: 10px; margin-top: 44px; }
.tiles figure { margin: 0; }
.tiles img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tiles figcaption { font-size: 13px; color: var(--soft); margin-top: 8px; letter-spacing: .02em; }
@media (min-width: 640px) {
  .tiles { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .tiles img { aspect-ratio: 4 / 5; }
}

.note-line { font-family: var(--serif); font-size: 22px; line-height: 1.35; margin: 40px 0 0; max-width: 760px; }
.note-line em { font-style: italic; }

/* The brands section: a wide photograph beside dark copy. */
.brands-grid { display: grid; gap: 36px; }
.brands-grid .photos { display: grid; grid-template-columns: 3fr 2fr; gap: 10px; }
.brands-grid .photos img { width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.brands-grid .photos img.wide { aspect-ratio: auto; }
@media (min-width: 900px) {
  .brands-grid { grid-template-columns: 6fr 5fr; gap: 72px; align-items: center; }
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.tags li { border: 1px solid currentColor; padding: 5px 12px; font-size: 14px; }

/* What a provider sees: a share page, built from the catalog's own labels, for a traveler who doesn't exist. */
.demo { display: grid; gap: 36px; }
.demo .section-head h2 { margin-bottom: 6px; }
.demo .section-head p.demo-sub { font-family: var(--serif); font-size: 24px; line-height: 1.25; color: var(--ink); margin: 0; }
@media (min-width: 900px) { .demo .section-head p.demo-sub { font-size: 30px; } }
@media (min-width: 900px) { .demo { grid-template-columns: 4fr 7fr; gap: 72px; align-items: start; } .demo .section-head { position: sticky; top: calc(var(--bar-h) + 32px); } }
.sharepage { background: var(--white); border: 1px solid var(--linen-deep); padding: 22px 18px; font-size: 15px; line-height: 1.45; }
@media (min-width: 900px) { .sharepage { padding: 40px 44px; font-size: 16px; } }
.sharepage .via { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); margin: 0 0 10px; }
.sharepage .who { font-family: var(--serif); font-size: 32px; line-height: 1.1; margin: 0 0 4px; }
.sharepage .dates { color: var(--soft); margin: 0 0 18px; font-size: 14px; }
.sharepage h3 { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--prussian); margin: 22px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--linen-deep); }
.sharepage h4 { font: 500 14px/1.3 var(--sans); color: var(--soft); margin: 12px 0 4px; }
.sharepage ul { list-style: none; margin: 0; padding: 0; }
.sharepage li { padding: 5px 0; }
.sharepage li b { font-weight: 600; }
.sharepage .lbl { color: var(--soft); }
.sharepage .consent { font-size: 13px; color: var(--soft); }
@media (min-width: 900px) { .sharepage .cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; } }

/* The ruler. */
.ruler { text-align: left; }
.ruler blockquote { margin: 0; font-family: var(--serif); font-size: 34px; line-height: 1.15; max-width: 900px; }
@media (min-width: 900px) { .ruler blockquote { font-size: 56px; } }
.question { margin: 36px 0 0; max-width: 640px; }
.question p { margin: 0 0 10px; font-size: 16px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.steps span { display: grid; place-items: center; min-height: 48px; padding: 6px; font: 500 15px/1.2 var(--sans); text-align: center; }
.steps .miss { background: var(--t-miss-soft); color: var(--t-miss-ink); }
.steps .part { background: var(--t-part-soft); color: var(--t-part-ink); }
/* Picked: the app's green, one step darker so white text passes AA (the app's #0ca30c is about 3:1). */
.steps .full { background: var(--t-full-ink); color: #fff; font-weight: 600; }
.loop { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 44px 0 0; padding: 0; list-style: none; font-family: var(--serif); font-size: 26px; }
.loop li + li::before { content: '→'; font-family: var(--sans); color: var(--faint); margin-right: 14px; font-size: 20px; }
@media (min-width: 900px) { .loop { font-size: 34px; } }

/* The five categories. */
.cats { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.cats li { padding: 16px 0; border-bottom: 1px solid var(--linen-deep); }
.cats h3 { font-size: 24px; margin-bottom: 4px; }
.cats p { margin: 0; color: var(--soft); font-size: 15px; }
@media (min-width: 900px) {
  .cats { grid-template-columns: repeat(5, 1fr); column-gap: 28px; border-top: 0; }
  .cats li { border-top: 1px solid var(--ink); border-bottom: 0; padding-top: 18px; }
}

.closing { text-align: center; }
.closing h2 { font-size: 46px; }
.closing .rule { margin-left: auto; margin-right: auto; }
.closing .actions { justify-content: center; }
@media (min-width: 900px) { .closing h2 { font-size: 80px; } }

/* ---- About ----------------------------------------------------------------------------------------- */
.page-head { padding: calc(var(--rhythm) * .8) 0 calc(var(--rhythm) * .6); }
.page-head h1 { max-width: 15ch; }
.page-head .lede { max-width: 640px; color: var(--soft); }
.wide-photo { margin: 0; }
.wide-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 900px) { .wide-photo img { aspect-ratio: 21 / 8; } }
.prose { max-width: 680px; }
.prose p { font-size: 18px; }
.prose ol { padding-left: 22px; }
.prose li { margin-bottom: 10px; }
.values { display: grid; gap: 28px; margin: 0; padding: 0; list-style: none; }
.values li { border-top: 1px solid var(--ink); padding-top: 14px; }
.values h3 { margin-bottom: 6px; }
.values p { margin: 0; color: var(--soft); }
@media (min-width: 900px) { .values { grid-template-columns: repeat(3, 1fr); column-gap: 40px; row-gap: 40px; } }
.about-cols { display: grid; gap: 40px; }
@media (min-width: 900px) { .about-cols { grid-template-columns: 1fr 1fr; gap: 72px; } }

/* The contact form. */
.contact { display: grid; gap: 36px; }
@media (min-width: 900px) { .contact { grid-template-columns: 4fr 7fr; gap: 72px; } }
.form { display: grid; gap: 18px; }
@media (min-width: 640px) { .form .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; } }
.form .pair { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; font: 500 14px/1.3 var(--sans); letter-spacing: .02em; }
.field .opt { color: var(--soft); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--ink); border-radius: 0; background: var(--white);
  font: 400 16px/1.4 var(--sans); color: var(--ink); -webkit-appearance: none; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field textarea { min-height: 160px; resize: vertical; }
.kinds { border: 0; margin: 0; padding: 0; }
.kinds legend { font: 500 14px/1.3 var(--sans); letter-spacing: .02em; margin-bottom: 8px; padding: 0; }
.kinds .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.kinds label { position: relative; }
.kinds input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kinds span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border: 1px solid var(--ink); background: var(--white); cursor: pointer; font-size: 15px; }
.kinds input:checked + span { background: var(--ink); color: var(--linen); }
.kinds input:focus-visible + span { outline: 2px solid var(--prussian); outline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { border-left: 3px solid var(--t-miss); background: var(--t-miss-soft); color: var(--t-miss-ink); padding: 10px 14px; margin: 0; }
.form-error:empty { display: none; }
.thanks { border-top: 3px solid var(--yellow); background: var(--white); padding: 24px; }
.thanks h3 { margin-bottom: 8px; }

/* ---- legal pages ----------------------------------------------------------------------------------- */
.legal { padding: calc(var(--rhythm) * .7) 0 var(--rhythm); }
.legal h1 { font-size: 44px; margin-bottom: 8px; }
.legal .updated { color: var(--soft); margin: 0 0 28px; }
.legal h2 { font-size: 26px; margin: 40px 0 10px; }
.legal p, .legal li { font-size: 17px; max-width: 68ch; }
.legal ul { padding-left: 22px; margin: 0 0 14px; }
.legal li { margin-bottom: 8px; }
.legal .toc { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--linen-deep); padding: 14px 0; margin: 0 0 12px; }
.legal .toc ol { margin: 0; padding-left: 22px; columns: 1; }
.legal .toc li { font-size: 15px; margin-bottom: 4px; }
.legal .cols > div > :first-child h2, .legal .cols > div > h2:first-child { margin-top: 0; }
@media (min-width: 900px) {
  .legal .cols { display: grid; grid-template-columns: 260px 1fr; gap: 72px; align-items: start; }
  .legal .toc { position: sticky; top: calc(var(--bar-h) + 24px); }
  .legal h1 { font-size: 60px; }
}

/* ---- footer ---------------------------------------------------------------------------------------- */
.foot { background: var(--ink); color: var(--linen); padding: 48px 0 40px; }
.foot-in { display: grid; gap: 28px; }
.foot .logo { height: 28px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.foot nav a { color: var(--linen); text-decoration: none; font-size: 15px; padding: 8px 0; }
.foot nav a:hover { text-decoration: underline; }
.foot small { color: #cfc8bf; font-size: 13px; }
@media (min-width: 900px) { .foot-in { grid-template-columns: auto 1fr auto; align-items: center; gap: 48px; } }

.foot .brand { grid-area: auto; }

/* A phone with its toolbars showing (~660px tall): the headline, the sentence and the card still fit. */
@media (max-width: 899px) and (max-height: 760px) {
  .hero-panel { padding: 16px 16px 10px; }
  .hero h1 { font-size: 38px; }
  .hero .rule { margin: 8px 0; }
  .hero .lede { font-size: 15px; line-height: 1.45; margin-bottom: 10px; }
  .rotator { padding-top: 10px; }
  .card h2 { font-size: 21px; }
  .card p { font-size: 14px; line-height: 1.45; }
  .dot { width: 28px; height: 28px; }
  .rotator-controls { margin-top: 2px; }
}

/* Help (public/help.html) wears the bar and footer; its own styles stay its own. */
.help-site .bar, .help-site .foot { font-family: var(--sans); }

@media print {
  .bar, .foot, .rotator-controls { display: none; }
  .hero { min-height: 0; }
}
