/* oliverorskov.com, rethought. Direction: The dark room (design skill, seed 247019912).
   One green-black field from top to bottom; the photographs are the light in it. Boska, roman and
   italic. Pale jade only on the actions. */

@font-face { font-family: "Boska"; src: url("fonts/boska-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Boska"; src: url("fonts/boska-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Boska"; src: url("fonts/boska-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --bg: #161c1a;
  --surface: #1f2725;
  --surface-2: #29332f;
  --ink: #e3e2da;
  --muted: #a3a9a1;
  --accent: #9fc7b8;
  --accent-ink: #161c1a;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-sub: clamp(1.625rem, 2.6vw, 2.5rem);
  --step-display: clamp(3.5rem, 5.4vw, 5rem);

  --margin: clamp(1rem, 2.2vw, 2rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Boska", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { 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-family: var(--font); font-size: var(--step-body); line-height: 1.55; letter-spacing: 0.005em; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 400; letter-spacing: -0.02em; line-height: 0.95; text-wrap: balance; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.nums { font-variant-numeric: tabular-nums lining-nums; }
.wrap { padding-inline: var(--margin); }
.skip { position: absolute; left: -999px; top: 1rem; padding: 0.75rem 1rem; background: var(--accent); color: var(--accent-ink); z-index: 50; }
.skip:focus { left: 1rem; }

/* The one action shape on the page: a solid pale-jade rectangle. */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0 1.5rem;
  background: var(--accent); color: var(--accent-ink);
  font-size: var(--step-body); text-decoration: none;
  transition: background-color 180ms ease, transform 140ms var(--ease-out);
}
.button:hover { background: #b6d6ca; }
.button:active { transform: scale(0.97); }
.link { text-decoration: underline; text-underline-offset: 0.22em; text-decoration-thickness: 1px; transition: color 180ms ease; }
.link:hover { color: var(--accent); }

/* ---------- bar ---------- */
.bar {
  position: absolute; inset: 0 0 auto; z-index: 10;
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 1.75rem var(--margin);
  font-size: var(--step-body);
}
.wordmark { font-size: var(--step-body); font-weight: 500; text-decoration: none; }
.bar nav { display: flex; gap: 1.75rem; }
.bar nav a { padding-block: 0.5rem; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.3em; text-decoration-thickness: 1px; transition: text-decoration-color 200ms ease; }
.bar nav a:hover { text-decoration-color: currentColor; }

/* ---------- hero: a ring of frames around the headline ---------- */
.hero { position: relative; height: 100svh; min-height: 40rem; overflow: hidden; }
.ring { position: absolute; inset: 0; }
.frame {
  position: absolute; left: var(--x); top: var(--y); width: var(--w);
  transform: translate(-50%, -50%) rotate(var(--r));
  transition: opacity 400ms ease, filter 400ms ease, scale 500ms var(--ease-out);
}
.frame img { width: 100%; aspect-ratio: auto; background: var(--surface); }
.ring.is-pointing .frame { opacity: 0.45; }
.ring.is-pointing .frame.is-lit { opacity: 1; scale: 1.08; z-index: 2; }
.core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(38rem, 80vw); display: grid; justify-items: center; gap: 1.5rem; text-align: center;
}
.core h1 { font-size: var(--step-display); }
.sub { max-width: 40ch; font-size: var(--step-body); min-height: 3.2em; color: var(--ink); }
.sub em { font-style: italic; }

/* ---------- work: loose scatter with pauses ---------- */
.work { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding-top: clamp(7rem, 12vw, 11rem); }
.section-title { grid-column: 1 / -1; font-size: var(--step-head); margin-bottom: clamp(3rem, 6vw, 5rem); }
.piece { display: grid; gap: 0.75rem; align-content: start; }
.piece a { display: block; overflow: hidden; }
.piece img { width: 100%; height: 100%; object-fit: cover; transition: scale 900ms var(--ease-out); }
.piece a:hover img { scale: 1.03; }
.name { font-size: var(--step-small); color: var(--muted); }
.desc { font-size: var(--step-body); }
.place-a { grid-column: 1 / 8; margin-top: 16vh; }
.place-a:first-of-type { margin-top: 0; }
.place-a a { aspect-ratio: 3 / 2; }
.place-b { grid-column: 9 / -1; margin-top: -5rem; }
.place-b a { aspect-ratio: 4 / 5; }
.place-c { grid-column: 3 / 11; margin-top: 16vh; }
.place-c a { aspect-ratio: 16 / 9; }
.remark { grid-column: 2 / 6; align-self: center; font-size: var(--step-lead); line-height: 1.35; font-style: italic; max-width: 22ch; }
.work > .piece:last-child { margin-bottom: 0; }

/* ---------- the season between: photographs gathered round a heading ---------- */
.season { position: relative; min-height: 100svh; margin-block: clamp(8rem, 14vw, 14rem); }
.season-text { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 22rem; display: grid; justify-items: center; gap: 1rem; text-align: center; z-index: 2; }
.season-title { font-size: var(--step-sub); font-style: italic; }
.season-text p { font-size: var(--step-body); }
.drift { position: absolute; width: clamp(9rem, 12.5vw, 12.5rem); display: block; overflow: hidden; will-change: transform; }
.drift img { width: 100%; aspect-ratio: 9 / 10; object-fit: cover; transition: scale 700ms var(--ease-out); }
.drift:hover img { scale: 1.05; }
.d1 { left: 24%; top: 6%; }
.d2 { left: 45%; top: 2%; }
.d3 { left: 64%; top: 12%; }
.d4 { left: 25%; top: 46%; }
.d5 { left: 66%; top: 48%; }
.d6 { left: 33%; top: 76%; }
.d7 { left: 52%; top: 73%; }
.d8 { left: 70%; top: 80%; }

/* ---------- prices like a menu, and the live price ---------- */
.prices { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding-block: clamp(6rem, 10vw, 9rem); }
.prices-side { grid-column: 1 / 4; display: grid; gap: 2.5rem; align-content: start; }
.prices-side .section-title { margin-bottom: 0; }
.prices-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.menu { grid-column: 5 / -1; display: grid; grid-template-columns: 1fr 1fr; column-gap: 4rem; align-content: start; }
.group h3 { font-size: var(--step-lead); font-weight: 500; letter-spacing: 0; line-height: 1.2; margin-bottom: 1.75rem; }
.unit { font-size: var(--step-small); font-weight: 400; color: var(--muted); }
.item { margin-bottom: 1.5rem; }
.item-row { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--step-body); }
.item-desc { margin-top: 0.25rem; font-size: var(--step-body); color: var(--muted); max-width: 36ch; }
.calc { grid-column: 1 / -1; margin-top: 3.5rem; padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--surface); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 3rem; }
.calc[hidden] { display: none; }
.calc h3 { grid-column: 1 / -1; font-size: var(--step-lead); line-height: 1.1; }
.choice { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; border: 0; padding: 0; margin: 0; }
.choice legend { margin-bottom: 0.75rem; font-size: var(--step-small); color: var(--muted); }
.choice label { display: block; cursor: pointer; }
.choice input, .check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: grid; gap: 0.15rem; padding: 1rem 1.1rem; background: var(--surface-2); font-size: var(--step-body); transition: background-color 180ms ease, color 180ms ease; }
.choice small { font-size: var(--step-small); color: var(--muted); transition: color 180ms ease; }
.choice input:checked + span { background: var(--ink); color: var(--bg); }
.choice input:checked + span small { color: #4a524f; }
.choice input:focus-visible + span, .check input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.check { display: flex; align-items: center; cursor: pointer; }
.check span { position: relative; padding-left: 2.25rem; }
.check span::before { content: ""; position: absolute; left: 0; top: 50%; translate: 0 -50%; width: 1.4rem; height: 1.4rem; background: var(--surface-2); transition: background-color 180ms ease; }
.check input:checked + span::before { background: var(--accent); }
.check input:checked + span::after { content: ""; position: absolute; left: 0.45rem; top: 50%; width: 0.5rem; height: 0.8rem; border: solid var(--accent-ink); border-width: 0 2px 2px 0; translate: 0 -60%; rotate: 45deg; }
.steps { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.stepper { display: flex; align-items: center; gap: 0.25rem; }
.stepper button { width: 2.75rem; height: 2.75rem; background: var(--surface-2); border: 0; font-size: var(--step-lead); cursor: pointer; transition: background-color 180ms ease, transform 140ms var(--ease-out); }
.stepper button:hover { background: #34403b; }
.stepper button:active { transform: scale(0.94); }
.stepper output { min-width: 2.5rem; text-align: center; font-size: var(--step-lead); }
.km { grid-column: 1 / -1; display: grid; gap: 0.5rem; }
.km span { font-size: var(--step-small); color: var(--muted); }
.km input, .booking input, .booking select, .booking textarea { width: 100%; min-height: 3.25rem; padding: 0.75rem 0.9rem; background: var(--surface-2); border: 0; border-radius: 0; font-size: var(--step-body); }
.km input { max-width: 14rem; }
.total { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 0.25rem 2rem; padding-top: 1rem; }
.total-sum { grid-column: 1; font-size: var(--step-head); line-height: 1; }
.total-detail { grid-column: 1; color: var(--muted); }
.total .button { grid-column: 2; grid-row: 1 / 3; align-self: end; }

/* ---------- questions, answers beside ---------- */
.faq { display: grid; gap: clamp(2.5rem, 4vw, 3.5rem); padding-block: clamp(5rem, 8vw, 7rem); }
.qa { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: baseline; }
.question { grid-column: 1 / 7; font-size: var(--step-sub); font-weight: 500; line-height: 1.1; }
.question.soft { color: var(--muted); font-weight: 400; }
.answer { grid-column: 8 / -1; max-width: 40ch; font-size: var(--step-body); line-height: 1.55; }

/* ---------- about: an inset panel with the portrait in an arch ---------- */
.about { padding-inline: 1.25rem; }
.panel { position: relative; overflow: hidden; min-height: 88svh; background: var(--surface); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); padding: 3.5rem; column-gap: var(--gutter); }
.about-title { grid-column: 1 / 7; font-size: var(--step-head); align-self: start; }
.about-text { grid-column: 8 / -1; display: grid; gap: 4rem; align-content: start; justify-items: start; max-width: 22rem; }
.about-text h3 { font-size: var(--step-lead); line-height: 1.2; margin-bottom: 0.75rem; }
.about-text p { font-size: var(--step-body); }
/* The arch of the flower arbour the couples stand under. */
.portrait { position: absolute; left: 6%; bottom: -12%; width: 28vw; aspect-ratio: 2 / 3; object-fit: cover; clip-path: inset(0 round 50% 50% 0 0 / 34% 34% 0 0); }

/* ---------- contact: a coupon to cut out ---------- */
.contact { padding-block: clamp(7rem, 10vw, 9rem); }
.coupon {
  --notch: 14px;
  position: relative; display: grid; grid-template-columns: 46fr 54fr; max-width: 70rem; margin-inline: auto;
  background: var(--surface);
}
/* The notches are cut by two circles of the page's own ground. */
.notch { position: absolute; left: 46%; width: calc(var(--notch) * 2); aspect-ratio: 1; border-radius: 50%; background: var(--bg); translate: -50% -50%; }
.notch.top { top: 0; }
.notch.bottom { top: 100%; }
.coupon::after { content: ""; position: absolute; left: 46%; top: 2rem; bottom: 2rem; width: 6px; translate: -50% 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='16'%3E%3Ccircle cx='3' cy='3' r='3' fill='%23161c1a'/%3E%3C/svg%3E") repeat-y; }
.coupon-text { padding: 3rem; display: grid; align-content: space-between; gap: 2rem; }
.coupon-title { font-size: var(--step-sub); }
.coupon-text p { max-width: 30ch; }
.booking { padding: 3rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.booking label { display: grid; gap: 0.4rem; font-size: var(--step-small); color: var(--muted); }
.booking .wide { grid-column: 1 / -1; }
.booking textarea { min-height: 7rem; resize: vertical; }
.booking input::placeholder, .booking textarea::placeholder { color: #7c837c; }
.booking input:focus, .booking select:focus, .booking textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.trap { position: absolute; left: -9999px; }
.send { grid-column: 1 / -1; min-height: 3.5rem; background: var(--accent); color: var(--accent-ink); border: 0; font-size: var(--step-body); cursor: pointer; transition: background-color 180ms ease, transform 140ms var(--ease-out); }
.send:hover { background: #b6d6ca; }
.send:active { transform: scale(0.99); }
.send[disabled] { opacity: 0.7; cursor: progress; }
.status { grid-column: 1 / -1; min-height: 1.5em; font-size: var(--step-body); }

/* ---------- footer: the name across the last photograph ---------- */
.foot { position: relative; height: 100svh; min-height: 34rem; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto auto; padding: 2rem var(--margin) 1.5rem; }
.foot-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; filter: brightness(0.62); z-index: -1; }
.foot-top { display: flex; justify-content: space-between; gap: 2rem; font-size: var(--step-body); }
.foot-top nav, .foot-contact { display: grid; gap: 0.35rem; align-content: start; }
.foot-contact { text-align: right; justify-items: end; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.foot-name { grid-row: 3; font-size: 13.4vw; line-height: 0.85; letter-spacing: -0.04em; white-space: nowrap; margin-inline: -0.04em; }
.legal { grid-row: 4; margin-top: 1rem; font-size: var(--step-small); }

/* ---------- the viewer ---------- */
.viewer { width: 100vw; height: 100svh; max-width: none; max-height: none; margin: 0; padding: clamp(1rem, 4vw, 3rem); border: 0; background: rgba(12, 15, 14, 0.96); color: var(--ink); }
.viewer[open] { display: grid; grid-template-rows: 1fr auto; gap: 1rem; justify-items: center; align-items: center; }
.viewer::backdrop { background: transparent; }
.viewer img { max-width: 100%; max-height: calc(100svh - 8rem); object-fit: contain; }
.viewer-caption { font-style: italic; }
.viewer-close { position: absolute; top: 1.25rem; right: var(--margin); min-height: 2.75rem; padding: 0 1rem; background: none; border: 0; cursor: pointer; font-size: var(--step-body); }
.viewer-close:hover { color: var(--accent); }

/* ---------- motion (content stays visible without script) ---------- */
.lines .line { display: block; overflow: hidden; padding-block: 0.12em 0.06em; margin-block: -0.12em -0.06em; }
.lines [data-line] { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .js .lines [data-line] { transform: translateY(105%); animation: line-up 900ms var(--ease-expo) forwards; animation-delay: calc(var(--i, 0) * 110ms + 250ms); }
  .js [data-rise] { opacity: 0; transform: translateY(16px); animation: rise 800ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 110ms + 450ms); }
  .js .frame { opacity: 0; scale: 0.85; animation: frame-in 900ms var(--ease-out) forwards; animation-delay: calc(var(--i) * 45ms + 200ms); }
  .js .ring.is-pointing .frame { animation: none; opacity: 0.45; scale: 1; }
  .js .ring.is-pointing .frame.is-lit { opacity: 1; scale: 1.08; }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}
@keyframes line-up { to { transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes frame-in { to { opacity: 1; scale: 1; } }

/* ---------- phone ---------- */
@media (max-width: 48em) {
  .bar { padding: 1.25rem var(--margin); }
  .bar nav { gap: 1rem; }
  .hero { height: 100svh; min-height: 36rem; }
  .frame.desk-only { display: none; }
  .frame { left: var(--px); top: calc(50% + var(--py)); width: calc(var(--pw) * 1.25); transform: translate(-50%, -50%) rotate(var(--pr)); }
  .core { width: calc(100% - 3.5rem); gap: 1.1rem; }
  .core h1 { font-size: 10.5vw; }
  .core .button { width: 100%; }

  .work { grid-template-columns: 1fr; }
  .section-title { margin-bottom: 2.5rem; }
  .place-a, .place-b, .place-c { grid-column: 1; grid-row: auto !important; margin-top: 4.5rem; }
  .place-a:first-of-type { margin-top: 0; }
  .place-b { width: 68%; justify-self: end; }
  .place-c { width: 82%; }
  .remark { grid-column: 1; grid-row: auto !important; margin-top: 4.5rem; max-width: none; }

  .season { min-height: 0; padding-block: 3rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1rem; padding-inline: var(--margin); margin-block: 6rem; }
  .season-text { position: static; translate: none; grid-column: 1 / -1; grid-row: 2; width: auto; padding-block: 1.5rem; }
  .drift { position: static; width: 100%; transform: none !important; }
  .d1, .d2 { grid-row: 1; }
  .d2 { margin-top: 2.5rem; }
  .d3, .d4 { grid-row: 3; }
  .d4 { margin-top: 2.5rem; }
  .d5 { grid-row: 4; }
  .d6, .d7, .d8 { display: none; }

  .prices { grid-template-columns: 1fr; }
  .prices-side { grid-column: 1; }
  .prices-photo { width: 60%; }
  .menu { grid-column: 1; grid-template-columns: 1fr; margin-top: 3rem; }
  .calc { grid-template-columns: 1fr; padding: 1.25rem; }
  .total { grid-template-columns: 1fr; }
  .total .button { grid-column: 1; grid-row: auto; margin-top: 1rem; }

  .qa { grid-template-columns: 1fr; gap: 0.75rem; }
  .question, .answer { grid-column: 1; }
  .answer { max-width: none; }

  .about { padding-inline: 0.625rem; }
  .panel { grid-template-columns: 1fr; padding: 2rem 1.25rem 0; min-height: 0; }
  .about-title { grid-column: 1; margin-bottom: 2.5rem; }
  .about-text { grid-column: 1; gap: 2.5rem; max-width: none; }
  .portrait { position: relative; left: auto; bottom: auto; width: 86vw; margin: 3rem auto -25%; }

  .coupon { grid-template-columns: 1fr; }
  .coupon::after, .notch { display: none; }
  .coupon-text, .booking { padding: 1.5rem; }
  .booking { grid-template-columns: 1fr; padding-top: 0; }

  .foot { height: 88svh; }
  .foot-top { flex-direction: column; }
  .foot-contact { text-align: left; justify-items: start; }
  .foot-name { font-size: 15vw; white-space: normal; }
}
