/* Hraunbrún — light, editorial, printed-brochure feel */
:root {
  --paper: #f4f0e8;
  --paper-2: #ebe5d8;
  --card: #fbf9f4;
  --ink: #1e2320;
  --ink-2: #4b524d;
  --rule: #d6cdbb;
  --moss: #4a5e46;
  --moss-dark: #3a4b37;
  --rust: #9c4f2c;
  --max: 1120px;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overscroll-behavior-y: none; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a, button, label, summary, select, input { -webkit-tap-highlight-color: transparent; }
button, .button, .lang, summary { -webkit-user-select: none; user-select: none; touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--moss); outline-offset: 3px; }
[id] { scroll-margin-top: 84px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.muted { color: var(--ink-2); }
.small { font-size: 0.86rem; }

h1, h2, h3, .mark-name, .signature, dt {
  font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em;
}
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
h1 { font-size: clamp(2.1rem, 5.6vw, 4.1rem); line-height: 1.04; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); line-height: 1.1; margin-bottom: 14px; }
h3 { font-size: 1.45rem; line-height: 1.2; margin-bottom: 8px; }
p + p { margin-top: 12px; }

/* ── Demo bar ── */
.demo-bar { background: var(--ink); color: #e9e4d8; font-size: 0.8rem; text-align: center; padding: 7px 16px; }
.demo-bar a { color: #fff; text-underline-offset: 3px; margin-left: 6px; }

/* ── Header ── */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(244, 240, 232, 0.94);
  border-bottom: 1px solid var(--rule);
}
@supports ((backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px))) {
  .top { background: rgba(244, 240, 232, 0.7); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); }
}
.top-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.mark { text-decoration: none; display: flex; flex-direction: column; line-height: 1.05; }
.mark-name { font-size: 1.55rem; }
.mark-sub { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); margin-top: 3px; }
.top-nav { display: flex; gap: 22px; margin-left: auto; font-size: 0.92rem; }
.top-nav a { text-decoration: none; color: var(--ink-2); }
.top-actions { display: flex; align-items: center; gap: 18px; }

.lang { display: flex; align-items: center; gap: 2px; font-size: 0.82rem; color: var(--rule); }
.lang button {
  appearance: none; border: 0; background: none; cursor: pointer;
  font: 500 0.82rem var(--sans); color: var(--ink-2); padding: 12px 6px; margin: -8px -3px;
}
.lang button[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }

.button {
  display: inline-block; text-decoration: none; cursor: pointer;
  background: var(--moss); color: #fff; border: 0;
  font: 600 0.9rem var(--sans); letter-spacing: 0.01em;
  padding: 11px 18px; border-radius: 3px;
  transition: background .15s ease;
}
.button.wide { width: 100%; padding: 14px; font-size: 1rem; }

/* ── Opening ── */
.opening {
  display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: end;
  padding-top: 64px; padding-bottom: 40px;
}
.kicker { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rust); margin-bottom: 22px; }
.lede { font-size: 1.15rem; color: var(--ink-2); margin-top: 22px; max-width: 30em; }
.phone-line { margin-top: 26px; font-size: 0.95rem; }
.phone-line a { font-weight: 600; text-underline-offset: 4px; }
.opening-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
figcaption { font-size: 0.8rem; color: var(--ink-2); margin-top: 8px; font-style: italic; font-family: var(--serif); }

/* ── Facts strip ── */
.facts dl {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule);
}
.facts dl > div { padding: 18px 16px 18px 0; }
.facts dl > div + div { padding-left: 16px; border-left: 1px solid var(--rule); }
.facts dt { font-size: 1.7rem; line-height: 1.1; }
.facts dd { font-size: 0.84rem; color: var(--ink-2); margin-top: 4px; }

/* ── Request ── */
.request {
  display: grid; grid-template-columns: 5fr 6fr; gap: 56px;
  padding-top: 72px; padding-bottom: 24px;
}
.request-intro p { max-width: 28em; }
.request-intro .small { margin-top: 18px; }
.request-form {
  background: var(--card); border: 1px solid var(--rule); padding: 26px;
  box-shadow: 0 1px 0 var(--rule), 0 18px 40px -30px rgba(30, 35, 32, 0.35);
}
.row { margin-bottom: 14px; }
.row.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
label span { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.03em; color: var(--ink-2); margin-bottom: 5px; }
input, select, textarea {
  width: 100%; font: 400 1rem var(--sans); color: var(--ink);
  background: #fff; border: 1px solid var(--rule); border-radius: 2px;
  padding: 10px 11px; min-height: 44px; min-width: 0;
}
textarea { resize: vertical; }
input[aria-invalid="true"] { border-color: var(--rust); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--moss); box-shadow: 0 0 0 3px rgba(74, 94, 70, 0.15); }
.form-error { color: var(--rust); font-size: 0.88rem; margin-bottom: 12px; }
.form-done { border-left: 3px solid var(--moss); padding: 4px 0 4px 14px; }
.done-title { font-family: var(--serif); font-size: 1.35rem; }
.done-sum { font-weight: 600; font-size: 0.95rem; margin: 6px 0 10px; }

/* ── Rooms ── */
.rooms { padding-top: 88px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--ink); padding-bottom: 12px; margin-bottom: 8px; }
.section-head h2 { margin: 0; }
.section-head p { max-width: 30em; font-size: 0.9rem; text-align: right; }
.room {
  display: grid; grid-template-columns: 7fr 5fr; gap: 40px; align-items: center;
  padding: 40px 0; border-bottom: 1px solid var(--rule);
}
.room.flip { grid-template-columns: 5fr 7fr; }
.room.flip img { order: 2; }
.room img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.room-no { font-family: var(--serif); font-style: italic; color: var(--rust); font-size: 1.05rem; margin-bottom: 2px; }
.room table { width: 100%; border-collapse: collapse; margin: 18px 0 16px; font-size: 0.92rem; }
.room th { text-align: left; font-weight: 500; color: var(--ink-2); width: 34%; padding: 7px 0; border-top: 1px solid var(--rule); vertical-align: top; }
.room td { padding: 7px 0; border-top: 1px solid var(--rule); }
.room td b { font-weight: 600; }
.eur { color: var(--ink-2); font-size: 0.85em; margin-left: 4px; }
.text-link { font-weight: 600; font-size: 0.92rem; color: var(--moss); text-underline-offset: 4px; }
.text-link::after { content: " →"; }

/* ── Breakfast ── */
.breakfast { background: var(--paper-2); margin-top: 88px; padding: 72px 0; }
.breakfast-inner { display: grid; grid-template-columns: 6fr 5fr; gap: 56px; align-items: center; }
.breakfast img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.price-note { margin-top: 20px !important; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 0.95rem; }

/* ── Hosts ── */
.hosts { display: grid; grid-template-columns: 4fr 6fr; gap: 64px; align-items: center; padding-top: 88px; }
.hosts-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hosts-note { max-width: 34em; }
.hosts-note p:not(.signature) { font-family: var(--serif); font-size: 1.28rem; line-height: 1.5; }
.signature { font-style: italic; font-size: 1.35rem; color: var(--moss); margin-top: 22px !important; }
.signature::before { content: "— "; }

/* ── Getting here ── */
.here { padding-top: 88px; }
.here-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin: 26px 0 30px; }
.here-grid p { font-size: 0.95rem; color: var(--ink-2); }
.map iframe { width: 100%; height: 360px; border: 1px solid var(--rule); filter: grayscale(0.6) sepia(0.15); display: block; }
.map p { margin-top: 8px; }

/* ── Nearby ── */
.nearby { display: grid; grid-template-columns: 5fr 6fr; gap: 56px; align-items: center; padding-top: 88px; }
.times { width: 100%; border-collapse: collapse; margin-top: 18px; }
.times td { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.times td:last-child { text-align: right; font-family: var(--serif); font-size: 1.1rem; white-space: nowrap; padding-left: 16px; }
.nearby-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* ── Reviews placeholder ── */
.reviews { padding-top: 88px; }
.review-slot { border: 1px dashed var(--rule); padding: 34px; text-align: center; color: var(--ink-2); font-size: 0.95rem; background: repeating-linear-gradient(-45deg, transparent 0 10px, rgba(214, 205, 187, 0.18) 10px 11px); }

/* ── FAQ ── */
.faq { padding-top: 88px; max-width: 820px; margin-left: max(22px, calc((100vw - var(--max)) / 2)); }
.faq h2 { margin-bottom: 18px; }
details { border-top: 1px solid var(--rule); }
details:last-of-type { border-bottom: 1px solid var(--rule); }
summary {
  cursor: pointer; list-style: none; padding: 16px 32px 16px 0; position: relative;
  font-family: var(--serif); font-size: 1.2rem;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 13px; font-size: 1.4rem; color: var(--moss); font-family: var(--sans); font-weight: 300; }
details[open] summary::after { content: "–"; }
details p { padding: 0 0 18px; color: var(--ink-2); max-width: 40em; }

/* ── Footer ── */
.foot { margin-top: 96px; border-top: 1px solid var(--ink); padding: 34px 0 max(44px, env(safe-area-inset-bottom)); background: var(--paper-2); }
.foot-inner { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 32px; }
.foot .mark-name { font-size: 1.35rem; }
.foot a { text-underline-offset: 3px; }
.credits p + p { margin-top: 6px; }

/* ── Demo toast ── */
.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50;
  background: var(--ink); color: #fff; font-size: 0.88rem; padding: 10px 16px; border-radius: 3px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4); max-width: calc(100% - 32px);
}

/* ── Gentle reveal (no blur, no bounce) ── */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* ── Responsive ── */
@media (max-width: 980px) {
  .top-inner { flex-wrap: wrap; height: auto; column-gap: 28px; row-gap: 0; }
  .mark, .top-actions { min-height: 62px; }
  .mark { justify-content: center; }
  .top-actions { margin-left: auto; }
  .top-nav {
    order: 3; flex-basis: calc(100% + 44px); margin: 0 -22px; padding: 0 22px 11px; gap: 20px;
    overflow-x: auto; scrollbar-width: none; white-space: nowrap; font-size: 0.86rem;
  }
  .top-nav::-webkit-scrollbar { display: none; }
  .top-nav a { padding: 4px 0; }
  [id] { scroll-margin-top: 112px; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .opening, .request, .room, .room.flip, .breakfast-inner, .hosts, .nearby { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .opening { padding-top: 34px; }
  .opening-photo { order: -1; margin: 0 -22px; }
  .opening-photo figcaption { padding: 0 22px; }
  .room.flip img { order: 0; }
  .room { padding: 30px 0; }
  .facts dl { grid-template-columns: repeat(2, 1fr); }
  .facts dl > div { padding: 14px 12px 14px 0; border-left: 0 !important; padding-left: 0 !important; border-top: 1px solid var(--rule); }
  .facts dl > div:nth-child(-n + 2) { border-top: 0; }
  .facts dl > div:nth-child(even) { padding-left: 14px !important; border-left: 1px solid var(--rule) !important; }
  .facts dl > div:last-child { grid-column: 1 / -1; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .section-head p { text-align: left; }
  .here-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .map iframe { height: 280px; }
  .hosts-photo { max-width: 320px; }
  .foot-inner { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .request-form { padding: 20px; }
  .rooms, .here, .nearby, .reviews, .faq, .hosts { padding-top: 64px; }
  .breakfast { margin-top: 64px; padding: 52px 0; }
}
@media (max-width: 420px) {
  .mark-sub { display: none; }
  .button { padding: 10px 13px; font-size: 0.85rem; }
  .top-actions { gap: 12px; }
}
@media (max-width: 340px) {
  .top-inner { gap: 12px; }
  .mark-name { font-size: 1.35rem; }
}

/* Hover effects only for a real mouse */
@media (hover: hover) and (pointer: fine) {
  .top-nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
  .button:hover { background: var(--moss-dark); }
}
