/* Ramen Haven — Sudbury website.
   Visual system mapped from the Athons WEB UI source (Fraunces display serif,
   Inter body, small ember uppercase eyebrows, outline ember buttons, white price
   chips over images, #3C3B40 footer with a round ember back-to-top button).
   Colour tokens are kept separate from layout/utility rules. Text colours are
   darkened from the source (#888C95 body, #D96704 labels) to meet WCAG AA. */

@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --ink: #212121;
  --ink-soft: #3C3B40;
  --text: #62666F;
  --text-strong: #3C3B40;
  --line: #E4E4E6;
  --paper: #FFFFFF;
  --wash: #F6F6F7;
  --ember: #D96704;
  --ember-bright: #F28705;
  --ember-ink: #B84F00;
  --ember-button: #C25400;
  --ember-button-hover: #A84A00;
  --on-dark: #FFFFFF;
  --on-dark-soft: #D6D6D8;
  --dark: #212121;
  --footer: #3C3B40;
  --chip: #FFFFFF;
  --focus: #F28705;

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --num: "Archivo", "Inter", system-ui, sans-serif;

  --container: 1040px;
  --wide: 1200px;
  --gutter: 24px;
  --radius: 8px;
  --section: clamp(64px, 9vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 17px/1.7 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ember-ink); text-underline-offset: 3px; }
a:hover { color: var(--ember-button-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); font-weight: 400; letter-spacing: -0.01em; margin: 0 0 .5em; font-variation-settings: "opsz" 72; }
h1 { font-size: clamp(40px, 5.2vw, 60px); line-height: 1.12; }
h2 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.18; }
h3 { font-size: clamp(21px, 2vw, 24px); line-height: 1.3; font-variation-settings: "opsz" 24; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 6px; z-index: 50; }
.skip:focus { top: 12px; }
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.wide { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; }
.eyebrow { display: block; font: 700 13px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ember-ink); margin: 0 0 14px; }
.on-dark .eyebrow, .eyebrow.on-dark { color: var(--ember-bright); }
.lede { font-size: 18px; line-height: 1.75; max-width: 40em; }
.muted { color: var(--text); }
.small { font-size: 14px; line-height: 1.6; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.section { padding-block: var(--section); }
.section.wash { background: var(--wash); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons — source: outline ember r8 "View details"/"Learn more", filled ember "Book now". */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 22px; border-radius: var(--radius); font: 600 15px/1.2 var(--sans); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.btn-primary { background: var(--ember-button); color: #fff; }
.btn-primary:hover { background: var(--ember-button-hover); color: #fff; }
.btn-outline { border-color: var(--ember); color: var(--ember-ink); background: transparent; }
.btn-outline:hover { background: var(--ember-button); border-color: var(--ember-button); color: #fff; }
.btn-light { border-color: rgba(255,255,255,.8); color: #fff; }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.text-link { font: 600 14px/1.4 var(--sans); color: var(--ember-ink); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.text-link:hover { text-decoration: underline; }

/* Header — inner pages use the Home01 white variant with a top info bar; Home uses the Home04 dark variant. */
.topbar { background: var(--wash); font-size: 13px; color: var(--text-strong); }
.topbar .container { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; padding-block: 8px; }
.topbar a { color: var(--text-strong); text-decoration: none; }
.topbar a:hover { color: var(--ember-ink); text-decoration: underline; }
.topbar span { display: inline-flex; align-items: center; gap: 8px; }
.site-header { position: relative; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand-name { font: 500 21px/1 var(--serif); letter-spacing: -0.01em; }
.brand-name small { display: block; font: 600 10.5px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--text); margin-top: 3px; }
.menu { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.menu a { font: 600 14px/1 var(--sans); color: var(--text-strong); text-decoration: none; padding: 10px 0; border-bottom: 2px solid transparent; }
.menu a:hover { color: var(--ember-ink); }
.menu a[aria-current="page"] { color: var(--ember-ink); border-bottom-color: var(--ember); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--line); border-radius: var(--radius); min-width: 46px; min-height: 46px; align-items: center; justify-content: center; gap: 8px; padding: 0 12px; font: 600 14px var(--sans); color: var(--ink); cursor: pointer; }
.nav-toggle .bars { width: 18px; height: 12px; position: relative; border-block: 2px solid currentColor; }
.nav-toggle .bars::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid currentColor; }

.site-header.dark { background: var(--dark); border-bottom-color: rgba(255,255,255,.12); }
.site-header.dark .menu a { color: var(--on-dark-soft); }
.site-header.dark .menu a:hover, .site-header.dark .menu a[aria-current="page"] { color: #fff; border-bottom-color: var(--ember-bright); }
.site-header.dark .brand { color: #fff; }
.site-header.dark .brand-name small { color: var(--on-dark-soft); }
.site-header.dark .phone-link { color: #fff; }
.site-header.dark .nav-toggle { color: #fff; border-color: rgba(255,255,255,.3); }
.nav-dark { display: grid; grid-template-columns: 1fr auto 1fr; }
.nav-dark .menu { justify-self: start; }
.nav-dark .nav-cta { justify-self: end; }
.phone-link { font: 600 14px/1 var(--sans); color: var(--ink); text-decoration: none; white-space: nowrap; }

@media (max-width: 900px) {
  .nav, .nav-dark { display: flex; flex-wrap: wrap; }
  .nav-dark .brand { order: -1; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .js .menu { display: none; }
  .menu { order: 3; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 4px 0 14px; }
  .menu a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .site-header.dark .menu a { border-bottom-color: rgba(255,255,255,.12); }
  .js .nav.open .menu { display: flex; }
  .nav-cta { order: 2; }
  .nav-cta .phone-link { display: none; }
  .nav-cta .btn { display: none; }
  .topbar .hide-sm { display: none; }
}

/* Page titles (About/Contact/Menu/Rooms): large serif title with an offset intro. */
.page-title { padding-block: clamp(56px, 8vw, 104px) clamp(36px, 5vw, 64px); }
.page-title .intro { max-width: 34em; margin-left: clamp(0px, 8vw, 80px); font-size: 17px; }
.page-title.center .intro { margin-inline: auto; }
.meta-line { font-size: 14px; color: var(--text); display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; }
.meta-line span + span::before { content: "/"; margin-right: 10px; color: #A6A9B0; }
.wide-figure { margin: 0 auto; }
.wide-figure img { width: 100%; aspect-ratio: 12 / 5; object-fit: cover; border-radius: 2px; }
.wide-figure figcaption, .caption { font-size: 13px; color: var(--text); margin-top: 10px; }

/* Home hero — Home04 structure (eyebrow, three-line serif headline, bar overlapping the lower edge). */
.hero { position: relative; background: var(--wash); }
.hero-media img { width: 100%; height: clamp(520px, 62vw, 760px); object-fit: cover; object-position: 70% 50%; }
.hero-copy { position: absolute; inset: 0; display: flex; align-items: center; }
.hero-copy .container { padding-bottom: 120px; }
.hero-copy .panel { max-width: 560px; }
.hero h1 { font-size: clamp(42px, 6vw, 72px); line-height: 1.06; margin-bottom: 18px; }
.hero .lede { color: var(--text-strong); max-width: 30em; }
.facts-bar { position: relative; z-index: 2; margin-top: -72px; background: var(--paper); border-radius: 12px; box-shadow: 0 18px 50px rgba(33,33,33,.12); padding: 18px; display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 12px; align-items: stretch; }
.fact { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 10px 14px; min-height: 64px; }
.fact .label { display: block; font: 600 11.5px/1.4 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--text); }
.fact .value { font: 600 15px/1.4 var(--sans); color: var(--ink); }
.fact a { color: var(--ink); text-decoration: none; }
.fact a:hover { color: var(--ember-ink); text-decoration: underline; }
.facts-bar .btn { height: 100%; min-height: 64px; padding-inline: 28px; }
@media (max-width: 900px) {
  .hero-media img { height: 460px; object-position: 78% 50%; }
  .hero-copy { position: static; background: var(--paper); }
  .hero-copy .container { padding-block: 32px 24px; }
  .facts-bar { margin-top: 0; grid-template-columns: 1fr; box-shadow: none; padding: 0 0 8px; }
}

/* Story — overlapping image pair beside text ("Our Story in Mykonos"). */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split.top { align-items: start; }
.stack { position: relative; padding-bottom: 96px; }
.stack .back { width: 74%; margin-left: auto; }
.stack .back img { aspect-ratio: 4 / 5; }
.stack .front { position: absolute; left: 0; bottom: 0; width: 60%; border: 10px solid var(--paper); background: var(--paper); }
.stack img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.section.wash .stack .front { border-color: var(--wash); }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .stack { padding-bottom: 72px; }
  .stack .back { width: 80%; }
}

/* Feature list with icon tiles ("What makes us special" / "We improve your comfort"). */
.features { display: grid; gap: 30px; }
.feature { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.feature:last-child { border-bottom: 0; }
.icon-tile { width: 64px; height: 64px; border-radius: 12px; background: #FDF1E6; display: grid; place-items: center; color: var(--ember); }
.icon-tile svg { width: 32px; height: 32px; }
.feature h3 { font-size: 21px; margin-bottom: 6px; }
.feature p { margin-bottom: 8px; font-size: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 48px; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }

/* Image band (replaces the source's video band). */
.band-figure img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }

/* Cards — suites/rooms family: image, white price chip, serif title, meta, outline button. */
.cards { display: grid; gap: 28px; }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.two { grid-template-columns: repeat(2, 1fr); gap: 36px 28px; }
.card { display: flex; flex-direction: column; }
.card-media { position: relative; overflow: hidden; }
.card-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s ease; }
.cards.two .card-media img { aspect-ratio: 6 / 5; }
.card:hover .card-media img { transform: scale(1.03); }
.chip { position: absolute; left: 12px; bottom: 12px; background: var(--chip); color: var(--ink); border-radius: 4px; padding: 6px 10px; font: 500 12px/1 var(--sans); display: inline-flex; align-items: baseline; gap: 5px; box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.chip b { font: 600 17px/1 var(--num); }
.tag { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); border-radius: 4px; padding: 4px 8px; font: 600 12px/1.2 var(--sans); color: var(--text-strong); }
.tag.veg { border-color: #9CC5A5; color: #2F6B3D; }
.tag.spicy { border-color: #F2B38A; color: #9A3D00; }
.card h3 { margin: 16px 0 6px; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--ember-ink); }
.card .meta { font-size: 13px; color: var(--text); margin-bottom: 10px; }
.card p { font-size: 15px; line-height: 1.65; }
.card .btn { align-self: flex-start; margin-top: auto; min-height: 42px; padding: 9px 18px; font-size: 14px; }
@media (max-width: 1000px) { .cards.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .cards.four, .cards.three, .cards.two { grid-template-columns: 1fr; } }

/* Tall overlay cards ("Explore Mykonos and its surroundings"). */
.tall-card { position: relative; display: block; overflow: hidden; color: #fff; text-decoration: none; border-radius: 2px; }
.tall-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .6s ease; }
.tall-card:hover img { transform: scale(1.04); }
.tall-card .overlay { position: absolute; inset: auto 0 0 0; padding: 70px 22px 22px; background: linear-gradient(to top, rgba(20,18,16,.86), rgba(20,18,16,0)); }
.tall-card .overlay .chip { position: static; margin-bottom: 12px; }
.tall-card h3 { color: #fff; margin: 0 0 4px; }
.tall-card .sub { font-size: 14px; color: #F1ECE6; }
.tall-card:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }

/* Ember band (source: orange testimonial band; here a factual call-ahead band, no quotes). */
.ember-band { background: var(--ember-bright); color: var(--ink); padding-block: clamp(56px, 8vw, 96px); }
.ember-band h2 { color: var(--ink); }
.ember-band p { color: #2B1A08; font-size: 18px; }
.ember-band .btn-dark { background: var(--ink); color: #fff; }
.ember-band .btn-dark:hover { background: #000; color: #fff; }
.ember-band .btn-outline-dark { border-color: var(--ink); color: var(--ink); }
.ember-band .btn-outline-dark:hover { background: var(--ink); color: #fff; }

/* Gallery strip (Instagram grid). */
.strip { display: grid; grid-template-columns: repeat(5, 1fr); }
.strip a { display: block; overflow: hidden; }
.strip img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .6s ease, opacity .3s; }
.strip a:hover img { transform: scale(1.05); opacity: .9; }
@media (max-width: 760px) { .strip { grid-template-columns: repeat(2, 1fr); } .strip a:last-child { display: none; } }
@media (max-width: 760px) { .tall-card img { aspect-ratio: 4 / 3; } }

/* App note (secondary). */
.app-note { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; padding: 28px; }
.app-note svg { width: 56px; height: 56px; }
@media (max-width: 760px) { .app-note { grid-template-columns: 1fr; } }

/* Dark call band ("Your refuge awaits your call"); stats replaced by real contact facts. */
.dark-band { background: var(--footer); color: var(--on-dark-soft); padding-block: clamp(64px, 9vw, 112px); }
.dark-band h2, .dark-band h3 { color: #fff; }
.dark-band a { color: #fff; }
.dark-band .facts3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 56px; text-align: left; }
.dark-band .facts3 .big { font: 500 clamp(22px, 2.4vw, 28px)/1.2 var(--num); color: #fff; display: block; margin-bottom: 6px; word-break: break-word; }
.dark-band .facts3 .label { font: 600 13px/1.4 var(--sans); color: #fff; display: block; margin-bottom: 12px; }
@media (max-width: 760px) { .dark-band .facts3 { grid-template-columns: 1fr; } }

/* Section jump bar (replaces the rooms booking bar). */
.jump { background: var(--wash); border-radius: 12px; padding: 16px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.jump a { border: 1.5px solid var(--line); background: var(--paper); border-radius: var(--radius); padding: 10px 16px; min-height: 44px; display: inline-flex; align-items: center; font: 600 14px/1 var(--sans); color: var(--ink); text-decoration: none; }
.jump a:hover { border-color: var(--ember); color: var(--ember-ink); }
.jump .note { margin-left: auto; font-size: 13px; }
@media (max-width: 760px) { .jump .note { margin-left: 0; width: 100%; } }

/* Menu glance lists. */
.glance { columns: 2 420px; column-gap: 56px; }
.glance-group { break-inside: avoid; margin-bottom: 40px; }
.glance-group h3 { border-bottom: 1px solid var(--line); padding-bottom: 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.glance-group h3 a { font: 600 13px/1 var(--sans); }
.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; font-size: 15.5px; color: var(--text-strong); }
.price-list .dots { flex: 1; border-bottom: 1px dotted #C6C8CD; transform: translateY(-4px); min-width: 20px; }
.price-list .price { font: 500 15.5px/1 var(--num); color: var(--ink); }
.price-list abbr { text-decoration: none; font: 700 11px/1 var(--sans); color: #2F6B3D; border: 1.5px solid #9CC5A5; border-radius: 3px; padding: 2px 4px; }

/* Detail page (Room details): two columns with a sticky side card. */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.from-price { font: 500 30px/1 var(--num); color: var(--ink); }
.from-price small { font: 500 13px var(--sans); color: var(--text); margin-left: 6px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0 8px; }
.tile { border: 1.5px solid var(--line); border-radius: 10px; padding: 16px; min-height: 104px; display: flex; flex-direction: column; gap: 10px; }
.tile svg { width: 28px; height: 28px; color: var(--ember); }
.tile span { font: 400 15px/1.35 var(--serif); color: var(--ink); }
.tile b { font: 500 13px var(--sans); color: var(--text); }
.items { display: grid; gap: 0; margin-top: 12px; }
.item { padding: 22px 0; border-bottom: 1px solid var(--line); }
.item-head { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.item h3 { font-size: 22px; margin: 0; }
.item .price { font: 500 19px/1 var(--num); color: var(--ink); white-space: nowrap; }
.item p { margin: 8px 0 8px; font-size: 16px; }
.item dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0; font-size: 14.5px; }
.item dt { font-weight: 600; color: var(--text-strong); }
.item dd { margin: 0; }
.item .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.side-card { position: sticky; top: 24px; border: 1.5px solid var(--line); border-radius: 12px; padding: 24px; background: var(--paper); }
.side-card h2 { font-size: 24px; }
.side-card .btn { width: 100%; margin-top: 10px; }
.side-card p { font-size: 14.5px; }
.bullets { list-style: none; padding: 0; margin: 0; }
.bullets li { position: relative; padding-left: 24px; margin-bottom: 14px; }
.bullets li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--ember); }
.mosaic { display: grid; grid-template-columns: 2fr 1fr; gap: 6px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic .big { grid-row: span 2; }
.mosaic .big img { aspect-ratio: 4 / 3; }
.mosaic .sm img { aspect-ratio: 3 / 2; }
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
}

/* Gallery (Blog list). */
.post-card .label { font: 700 12px/1.4 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ember-ink); margin: 14px 0 6px; display: block; }
.post-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.post-card h3 { font-size: 20px; }

/* Contact. */
.contact-list dt { font: 400 20px/1.3 var(--serif); color: var(--ink); margin-top: 22px; }
.contact-list dd { margin: 6px 0 0; }
.contact-list a { color: var(--text-strong); }
.form { max-width: 780px; margin: 36px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font: 600 14px/1.3 var(--sans); color: var(--ink); }
.field .hint { font-size: 13px; color: var(--text); }
.field input, .field select, .field textarea { font: 400 16px/1.4 var(--sans); color: var(--ink); background: var(--paper); border: 1.5px solid #D5D6DA; border-radius: var(--radius); padding: 12px 14px; min-height: 48px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ember); outline: 2px solid rgba(242,135,5,.35); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: #B42318; }
.field .error { color: #B42318; font-size: 13.5px; font-weight: 600; min-height: 1em; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.choice { display: flex; gap: 18px; flex-wrap: wrap; }
.choice label { font-weight: 400; display: inline-flex; gap: 8px; align-items: center; min-height: 44px; }
.choice input { width: 20px; height: 20px; min-height: 0; accent-color: var(--ember-button); }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.status { grid-column: 1 / -1; border-radius: 10px; padding: 14px 16px; background: #FFF4E8; color: #5A2A00; font-size: 15px; }
.status[hidden] { display: none; }
.preview { grid-column: 1 / -1; white-space: pre-wrap; background: var(--wash); border-radius: 10px; padding: 16px; font: 400 14px/1.6 ui-monospace, "SFMono-Regular", Menlo, monospace; color: var(--ink); max-height: 320px; overflow: auto; }
@media (max-width: 700px) { .form { grid-template-columns: 1fr; } }

/* Privacy (Blog details reading layout): article column + sticky sidebar index. */
.article-head { padding-block: clamp(48px, 7vw, 96px) 28px; }
.article-head h1 { max-width: 15em; }
.article-meta { font-size: 14px; color: var(--text); display: flex; flex-wrap: wrap; gap: 4px 16px; }
.reading { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 72px); align-items: start; padding-bottom: var(--section); }
.policy-intro { font-size: 18px; color: var(--text-strong); border-left: 3px solid var(--ember); padding-left: 18px; margin-bottom: 40px; }
.policy { padding-block: 34px; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.policy h2 { font-size: clamp(26px, 3vw, 32px); }
.policy h2 .num { font: 500 .62em/1 var(--num); color: var(--ember-ink); display: block; margin-bottom: 10px; letter-spacing: .04em; }
.policy figure { margin: 6px 0 22px; }
.policy figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #EDE6D8; }
.policy figure figcaption { font-size: 13px; color: var(--text); margin-top: 8px; }
.policy.fig-wide figure img { aspect-ratio: 16 / 9; }
.policy.fig-float figure { float: left; width: 44%; margin: 6px 26px 12px 0; }
.policy.fig-float::after { content: ""; display: table; clear: both; }
.policy.fig-right figure { float: right; width: 44%; margin: 6px 0 12px 26px; }
.policy.fig-right::after { content: ""; display: table; clear: both; }
.policy ul { margin: 0 0 1em; }
.policy li { margin-bottom: 6px; }
.sidebar { position: sticky; top: 20px; }
.sidebar h2 { font-size: 22px; }
.toc { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { border-bottom: 1px solid var(--line); }
.toc a { display: flex; gap: 12px; padding: 9px 0; font-size: 14.5px; line-height: 1.4; color: var(--text-strong); text-decoration: none; }
.toc a:hover { color: var(--ember-ink); }
.toc a .n { font: 500 13px/1.5 var(--num); color: var(--ember-ink); min-width: 1.6em; }
.side-box { background: var(--wash); border-radius: 12px; padding: 20px; margin-top: 28px; font-size: 14.5px; }
@media (max-width: 960px) {
  .reading { grid-template-columns: 1fr; }
  .sidebar { position: static; order: -1; }
  .policy.fig-float figure, .policy.fig-right figure { float: none; width: 100%; margin: 6px 0 20px; }
}

/* Footer (source: #3C3B40, logo + columns, round ember back-to-top). */
.site-footer { background: var(--footer); color: var(--on-dark-soft); padding-top: 72px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer h2 { font: 500 17px/1.3 var(--serif); color: #fff; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: var(--on-dark-soft); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand-name small { color: var(--on-dark-soft); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 48px; padding-block: 22px 28px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: 13px; }
.to-top { position: fixed; right: 22px; bottom: 22px; width: 52px; height: 52px; border-radius: 50%; background: var(--ember-bright); color: var(--ink); display: grid; place-items: center; box-shadow: 0 10px 24px rgba(0,0,0,.18); text-decoration: none; z-index: 30; }
.to-top:hover { background: #fff; color: var(--ink); }
.to-top svg { width: 20px; height: 20px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } .to-top { right: 14px; bottom: 14px; width: 48px; height: 48px; } }

/* Progressive reveal: only when JS is present and motion is allowed. Content is visible otherwise. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .card:hover .card-media img, .tall-card:hover img, .strip a:hover img { transform: none; }
}
@media print { .site-header, .topbar, .to-top, .site-footer, .sidebar { display: none; } .reading { display: block; } }
