/* Max Ostrowski's page. Fonts are served from this site, not from Google. */
@font-face { font-family: 'Libre Caslon Text'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/libre-caslon-text-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Libre Caslon Text'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/libre-caslon-text-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Libre Caslon Text'; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/libre-caslon-text-latin-400-italic.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Libre Caslon Text'; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/libre-caslon-text-latin-ext-400-italic.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Libre Caslon Text'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/libre-caslon-text-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Libre Caslon Text'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/libre-caslon-text-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Libre Caslon Display'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/libre-caslon-display-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Libre Caslon Display'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/libre-caslon-display-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Courier Prime'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/courier-prime-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Courier Prime'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/courier-prime-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Courier Prime'; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/courier-prime-latin-400-italic.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Courier Prime'; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/courier-prime-latin-ext-400-italic.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Courier Prime'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/courier-prime-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Courier Prime'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/courier-prime-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Courier Prime'; font-style: italic; font-weight: 700; font-display: swap; src: url(/fonts/courier-prime-latin-700-italic.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --paper: #F2F0F1; --ink: #1E1C1B; --wine: #7B1F2E; --wine-dark: #4E1019;
  --grey: #5E5A57; --card: #FBFAF9; --rule: #CFCAC6; --bubble: #E4E0DD;
  --band: #E9E6E4; --field: #8C8681;
  --serif: 'Libre Caslon Text', Georgia, serif;
  --display: 'Libre Caslon Display', Georgia, serif;
  --mono: 'Courier Prime', 'Courier New', monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: 18px; line-height: 1.55; }
p { margin: 0; }
a { color: var(--wine); }
a:hover { color: var(--wine-dark); }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--wine); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.mono { font-family: var(--mono); }
.strong { font-weight: 700; font-size: 17px; }
.muted { color: var(--grey); }
.small { font-size: 15px; }
.kicker { font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.label-wine { color: var(--wine); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.display { font-family: var(--display); font-weight: 400; margin: 0; }
.plain { color: var(--ink); text-decoration: none; font-size: 15px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border: 0; border-radius: 2px; font-family: var(--mono); font-weight: 700; font-size: 17px; cursor: pointer; text-decoration: none; }
.btn-big { min-height: 56px; padding: 0 28px; font-size: 18px; }
.btn-wine { background: var(--wine); color: #fff; }
.btn-wine:hover { background: var(--wine-dark); color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); font-weight: 400; padding: 0 20px; }
.btn-ghost:hover { background: var(--bubble); }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.6; cursor: wait; }
.linkish { background: none; border: 0; padding: 0; color: var(--wine); text-decoration: underline; font: inherit; cursor: pointer; }
.linkish:hover { color: var(--wine-dark); }
.link-btn { min-height: 44px; padding: 0 2px; background: none; border: 0; color: var(--wine); text-decoration: underline; font-family: var(--mono); font-size: 15px; cursor: pointer; }
.link-btn:hover { color: var(--wine-dark); }
#hear .icon-pause { display: none; }
#hear.playing .icon-play { display: none; }
#hear.playing .icon-pause { display: inline; }

/* Header and hero */
.top { padding-top: 24px; padding-bottom: 24px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; }
.hero { padding-top: 24px; padding-bottom: 64px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero-text .kicker { color: var(--grey); font-size: 15px; }
.hero h1 { font-size: clamp(50px, 7vw, 84px); line-height: 1; }
.lede { font-size: 22px; line-height: 1.45; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 8px; }
.hero-pic { flex: 1 1 480px; min-width: 0; }
.hero-pic img { display: block; width: 100%; height: 620px; object-fit: cover; object-position: 50% 30%; }

/* The shack: sample evening, live chat and the closed panels */
.chat-wrap { max-width: 800px; margin: 0 auto; padding: 0 32px 96px; scroll-margin-top: 16px; }
.shack { background: var(--card); border: 1.5px solid var(--ink); border-radius: 2px; }
.shack-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 16px 24px; border-bottom: 1px solid var(--rule); }
.shack-who { display: flex; gap: 14px; align-items: center; }
.shack-who .strong { font-size: 18px; }
.avatar-lg { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 1px solid var(--ink); }
.shack.dark .avatar-lg { filter: grayscale(1) brightness(0.8); }
.avatar-sm { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; }
.glass { display: flex; gap: 10px; align-items: center; }
.glass .small { font-size: 14px; color: var(--grey); }
.glass.empty .small { color: var(--ink); font-weight: 700; }
#wine { transition: y 0.8s ease, height 0.8s ease; }

.log { padding: 28px 24px; display: flex; flex-direction: column; gap: 20px; }
.shack.scroll .log { max-height: min(68vh, 760px); overflow-y: auto; overscroll-behavior: contain; }
.turn.you { align-self: flex-end; max-width: 75%; background: var(--bubble); padding: 12px 16px; border-radius: 2px; }
.turn.you p { white-space: pre-wrap; overflow-wrap: anywhere; }
.turn.max { display: flex; gap: 12px; align-items: flex-start; max-width: 92%; }
.turn.max.thinking { align-items: center; }
.turn.max.thinking p { font-size: 15px; }
.say { font-family: var(--mono); font-size: 17px; line-height: 1.6; display: flex; flex-direction: column; gap: 0.8em; min-width: 0; overflow-wrap: anywhere; }
.say .act { color: var(--grey); }
.turn.oops p { font-family: var(--mono); font-size: 15px; color: var(--wine); }

.shack-foot { border-top: 1px solid var(--rule); }
.shack-foot .note:empty, .human-check:empty { display: none; }
.shack-foot > .note { padding: 0 24px 16px; }
.foot-sample { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; padding: 20px 24px; }
.foot-sample p { flex: 1 1 240px; font-size: 17px; }
.say-form { display: flex; gap: 12px; padding: 16px 24px 20px; align-items: flex-start; }
.say-label { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 14px; color: var(--grey); }
.say-label textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--field); border-radius: 2px; background: #fff; color: var(--ink); font-family: var(--serif); font-size: 17px; line-height: 1.45; resize: vertical; min-height: 56px; }
.counter { font-size: 13px; }
.counter.near { color: var(--wine); }
.say-form .btn { margin-top: 28px; }
.human-check { padding: 0 24px 16px; }

.panel { margin: 24px; padding: 24px; background: var(--paper); border-top: 3px solid var(--wine); display: flex; flex-direction: column; gap: 16px; }
.panel.plain-panel { border-top: 0; background: transparent; margin: 0; padding: 32px 28px; }
.panel h2 { font-family: var(--display); font-weight: 400; font-size: 32px; line-height: 1.15; margin: 0; }
.panel.plain-panel h2 { font-size: 36px; }
.panel .stage { font-family: var(--mono); font-style: italic; color: var(--grey); }
.panel .split { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 1px solid var(--rule); }
.panel-links { margin: 0 24px 20px; display: flex; flex-wrap: wrap; gap: 4px 28px; align-items: center; }
.panel-links a { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--mono); font-size: 15px; }
.panel-extra { margin: 0 24px 24px; }

.under { margin-top: 12px; font-size: 14px; }
.under-links { margin-top: 8px; }
.helpline { font-size: 15px; }

/* Sign-up, key and suggestion pieces */
.subscribe { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.subscribe p { flex: 1 1 220px; font-size: 14px; }
.subscribe iframe { display: block; width: 100%; max-width: 480px; height: 320px; border: 1px solid #EEE; background: #fff; }
.key-form { display: flex; flex-direction: column; gap: 8px; }
.key-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.key-row .field { flex: 1 1 200px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.field input, .field textarea { min-height: 48px; padding: 10px 12px; border: 1px solid var(--field); border-radius: 2px; font-size: 17px; font-family: inherit; background: #fff; color: var(--ink); }
.field input.mono { font-family: var(--mono); }
.field textarea { resize: vertical; }
.field.grow { flex: 1; }
.field.grow textarea { flex: 1; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.4; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--wine); }
.note { font-size: 15px; }
.note.bad { color: var(--wine); }
.note.good { color: #22513A; font-weight: 700; }
.suggest-form { display: flex; flex-direction: column; gap: 14px; flex: 1; }
.suggest-form .human-check { padding: 0; }

/* Stay on Max's good side */
.good-side { background: var(--band); padding: 80px 0; }
.stack-40 { display: flex; flex-direction: column; gap: 40px; }
.h2 { font-size: clamp(36px, 5vw, 52px); line-height: 1.1; }
.cards { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.card { background: var(--card); border: 1.5px solid var(--ink); display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.card-wide { flex: 2 1 560px; padding: 32px; }
.card-narrow { flex: 1 1 320px; padding: 28px; gap: 14px; }
.h3 { margin: 0; font-size: 30px; font-weight: 700; line-height: 1.2; }
.h3-sm { font-size: 26px; }
.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.benefits > div { display: flex; flex-direction: column; gap: 6px; }

/* About */
.about { padding-top: 80px; padding-bottom: 80px; display: flex; flex-wrap: wrap; gap: 56px; }
.about .col { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.h2-sm { font-size: 40px; }
.behind { flex: 1 1 100%; min-width: 0; padding-top: 48px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 24px 56px; }
.behind .full { flex: 1 1 100%; }
.behind p { flex: 1 1 420px; min-width: 0; }

.foot { border-top: 1px solid var(--rule); }
.foot-in { padding-top: 28px; padding-bottom: 40px; display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; font-size: 15px; color: var(--grey); }
.foot-in p { max-width: 640px; }

/* Phones */
@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { padding-left: 20px; padding-right: 20px; }
  .hero { gap: 32px; padding-bottom: 48px; }
  .hero-text, .hero-pic { flex-basis: 100%; }
  .hero-pic img { height: auto; aspect-ratio: 4 / 5; }
  .lede { font-size: 20px; }
  .actions .btn { width: 100%; }
  .chat-wrap { padding: 0 12px 64px; }
  .shack-head { padding: 14px 16px; }
  .log { padding: 20px 16px; }
  .turn.you { max-width: 88%; }
  .turn.max { max-width: 100%; }
  .say { font-size: 16px; }
  .say-form { flex-direction: column; align-items: stretch; padding: 14px 16px 16px; }
  .say-form .btn { margin-top: 0; }
  .foot-sample { padding: 16px; }
  .foot-sample .btn { width: 100%; }
  .panel { margin: 16px; padding: 20px 16px; }
  .panel.plain-panel { padding: 24px 16px; }
  .panel-links { margin: 0 16px 16px; }
  .panel-extra { margin: 0 16px 16px; }
  .human-check, .shack-foot > .note { padding-left: 16px; padding-right: 16px; }
  .good-side { padding: 56px 0; }
  .card-wide, .card-narrow { flex-basis: 100%; padding: 22px 18px; }
  .about { padding-top: 56px; padding-bottom: 56px; gap: 40px; }
  .about .col, .behind p { flex-basis: 100%; }
  .h2-sm { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) { #wine { transition: none; } * { scroll-behavior: auto !important; } }
.sub-wrap { display: flex; flex-direction: column; gap: 12px; }
.panel-links .helpline { padding: 0 2px; }
.log:empty { display: none; }

/* Privacy page */
.prose { max-width: 760px; padding-top: 24px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 16px; }
.prose h1 { font-size: clamp(44px, 6vw, 64px); line-height: 1.05; }
.prose h2 { font-size: 30px; line-height: 1.15; margin-top: 24px; }
.prose ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 10px; }
.prose .lede { font-size: 21px; }
