/* Lau. Old letterpress headings (IM Fell English), airy body text (Didact
   Gothic), near-black on white, full-bleed photo bands, black tiles.
   Fonts are self-hosted (static/fonts, see LICENSE.md there). */
@font-face {
  font-family: "IM Fell English";
  src: url("fonts/im-fell-english.woff2") format("woff2");
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IM Fell English";
  src: url("fonts/im-fell-english-italic.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Didact Gothic";
  src: url("fonts/didact-gothic.woff2") format("woff2");
  font-display: swap;
}

:root {
  --ink: #141617;
  --muted: #5d6266;
  --paper: #ffffff;
  --field: #eceef1;
  --line: #dfe2e6;
  --type: "IM Fell English", Georgia, "Times New Roman", serif;
  --body: "Didact Gothic", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.72 var(--body);
  letter-spacing: .015em;
  -webkit-text-size-adjust: 100%;
}
h1, h2, h3 { font-family: var(--type); font-weight: 400; line-height: 1.2; letter-spacing: -.015em; }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 0 0 .6em; }
h3 { font-size: 1.5rem; margin: 0 0 .6em; }
a { color: var(--ink); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.lead-col { max-width: 760px; margin-left: max(24px, calc((100% - 1140px) / 2)); }

.draft { background: #f2f3f5; color: var(--muted); padding: 6px 16px; font-size: .85rem; text-align: center; }
.tbd {
  background: #fff3c4; border: 1px dashed #c9a92c; border-radius: 3px;
  padding: 0 .3em; color: #6d5a10;
}

/* Hero */
.hero { position: relative; height: min(92vh, 820px); min-height: 420px; display: grid; place-items: center; color: #fff; overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(10,10,10,.28); }
.hero-text { position: relative; z-index: 1; text-align: center; padding: 0 16px; }
.hero h1 { font-size: clamp(5rem, 18vw, 11rem); margin: 0; line-height: 1; letter-spacing: .02em; }
.hero p { margin: .4em 0 0; font-size: clamp(1rem, 2.4vw, 1.25rem); letter-spacing: .12em; text-transform: uppercase; }

.topnav {
  position: sticky; top: 0; z-index: 5; display: flex; justify-content: center; gap: clamp(16px, 4vw, 44px);
  background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); padding: 14px 16px;
}
.topnav a { text-decoration: none; }
.topnav a:hover { text-decoration: underline; }

main > section[id] { padding-top: clamp(56px, 9vw, 110px); padding-bottom: clamp(56px, 9vw, 110px); }
section[id] { scroll-margin-top: 54px; }

/* Welcome, set in the letterpress face */
.typed p { font-family: var(--type); font-size: 1.28rem; line-height: 1.55; letter-spacing: 0; }

/* A quote laid over the poppies, set like a line of verse. It reads as
   poetry until you read it. */
.band.quote { display: grid; place-items: center; }
.band.quote img { position: absolute; inset: 0; }
.band.quote::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.42), rgba(0,0,0,.12) 55%, rgba(0,0,0,.3)); }
.band.quote blockquote {
  position: relative; z-index: 1; margin: 0; padding: 0 24px; max-width: 980px; text-align: center; color: #fff;
  font-family: var(--type); font-style: italic; font-size: clamp(1.7rem, 4.6vw, 3.6rem); line-height: 1.22;
  text-shadow: 0 2px 18px rgba(0,0,0,.45);
}
.band.quote figcaption { z-index: 1; }

/* Full-bleed photo bands */
.band { margin: 0; position: relative; height: clamp(260px, 58vw, 760px); overflow: hidden; }
.band img { width: 100%; height: 100%; object-fit: cover; }
.band figcaption { position: absolute; right: 12px; bottom: 8px; color: #fff; font-size: .8rem; text-shadow: 0 1px 3px rgba(0,0,0,.6); }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 56px; align-items: start; }
.cols p { margin-top: 0; }

.facts { margin: 0; border-top: 1px solid var(--ink); }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.facts dd { margin: 0; text-align: right; }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.pair figure { margin: 0; }
.pair img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pair figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }

/* Black tiles, as botrajvs' list of things to do on Storsudret */
.tiles { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tiles a {
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  height: 100%; min-height: 128px; padding: 18px 16px; background: #1b1d1f; color: #f9f9fb; text-decoration: none;
  transition: background .15s;
}
.tiles a:hover { background: #000; }
.tiles strong { font-family: var(--type); font-weight: 400; font-size: 1.45rem; line-height: 1.15; }
.tiles span { font-size: .85rem; color: #b9bdc1; margin-top: 8px; line-height: 1.45; }

/* Booking */
.btn {
  display: inline-block; background: #000; color: #fff; border: 0; border-radius: 999px;
  padding: .8em 1.8em; font: inherit; text-decoration: none; cursor: pointer;
}
.btn:hover { background: #33373a; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.small { padding: .35em .9em; font-size: .9rem; }

.cal { margin: 28px 0 0; position: relative; }
.cal-head { display: flex; justify-content: space-between; position: absolute; left: 0; right: 0; top: 0; pointer-events: none; }
.cal-head button {
  pointer-events: auto; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--ink);
}
.cal-head button:disabled { opacity: .3; cursor: default; }
.cal-months { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.cal-months .month + .month { display: none; }
.month h3 { text-align: center; margin: 4px 0 12px; font-size: 1.25rem; text-transform: capitalize; }
.grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.grid .wd { text-align: center; font-size: .75rem; color: var(--muted); padding-bottom: 4px; }
.grid button {
  aspect-ratio: 1; border: 0; border-radius: 0; background: var(--field); color: var(--ink);
  font: inherit; cursor: pointer; padding: 0; min-height: 36px;
}
.grid button:hover:not(:disabled) { outline: 2px solid var(--ink); outline-offset: -2px; }
.grid button:disabled { cursor: default; }
.grid .past { background: transparent; color: #b5b9bd; }
.grid .taken { background: repeating-linear-gradient(135deg, #d7dadd 0 4px, #c4c8cc 4px 8px); color: #8b9095; text-decoration: line-through; }
.grid .range { background: #b9bcbf; }
.grid .start, .grid .end { background: #000; color: #fff; }
.grid .today { box-shadow: inset 0 0 0 1.5px var(--ink); }
.legend { display: flex; gap: 20px; flex-wrap: wrap; font-size: .85rem; margin: 14px 0 0; color: var(--muted); }
.sw { display: inline-block; width: 13px; height: 13px; vertical-align: -1px; margin-right: 6px; }
.sw.free { background: var(--field); }
.sw.taken { background: repeating-linear-gradient(135deg, #d7dadd 0 3px, #c4c8cc 3px 6px); }
.sw.chosen { background: #000; }
.cal-hint { min-height: 1.6em; margin: 8px 0 0; }

.req h3 { margin-top: .2em; }
.req label { display: block; font-size: .9rem; margin-bottom: 14px; flex: 1; min-width: 0; }
.req .row { display: flex; gap: 14px; }
.req label.narrow { max-width: 160px; }
.req small { color: var(--muted); }
.req input, .req textarea {
  display: block; width: 100%; margin-top: 4px; font: inherit; color: var(--ink);
  padding: .7em .8em; border: 1px solid transparent; border-radius: 0; background: var(--field);
}
.req input:focus, .req textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.req .btn { width: 100%; }
.err { display: block; color: #a3241a; font-size: .88rem; margin-top: 4px; }
.err-sum { background: #fbe9e6; border-left: 3px solid #a3241a; padding: 10px 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nights { min-height: 1.5em; margin: 0 0 10px; color: var(--muted); }
.fine { font-size: .82rem; color: var(--muted); }

main > #hitta { padding-top: 0; }

.foot { background: #000; color: #c9ccd0; padding: 28px 0 36px; font-size: .85rem; }
.foot a { color: #fff; }
.foot summary { cursor: pointer; }
.foot li { margin: 4px 0; }

/* Thank-you and admin pages */
.plain main { padding-top: 40px; padding-bottom: 64px; }
.note { max-width: 640px; }
.note h1 { font-size: 2.8rem; }
.admin h2 { margin-top: 1.4em; font-size: 1.8rem; }
.card { border: 1px solid var(--line); padding: 4px 20px 16px; margin-bottom: 16px; }
.card h3 small { font-family: var(--body); color: var(--muted); font-size: .9rem; }
.card .msg { white-space: pre-wrap; background: var(--field); padding: 10px 12px; }
.card .meta { font-size: .85rem; color: var(--muted); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.actions form { margin: 0; }
.admin .req .btn { width: auto; }
.bookings { list-style: none; padding: 0; }
.bookings li { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--line); padding: 10px 14px; margin-bottom: 8px; }
.bookings form { margin: 0; }
.handled { color: var(--muted); }
.ok { background: #eaf2e3; border-left: 3px solid #4b7a35; padding: 10px 14px; }
.warn { background: #fbe9e6; border-left: 3px solid #a3241a; padding: 10px 14px; }

@media (max-width: 900px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .cols { grid-template-columns: 1fr; }
  .lead-col { margin-left: auto; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .pair { grid-template-columns: 1fr; }
  .req .row { flex-direction: column; gap: 0; }
  .req label.narrow { max-width: none; }
  .topnav { justify-content: flex-start; overflow-x: auto; white-space: nowrap; scrollbar-width: none; gap: 20px; }
  .facts div { flex-direction: column; gap: 0; }
  .facts dd { text-align: left; }
  .bookings li { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 380px) {
  .tiles { grid-template-columns: minmax(0, 1fr); }
}
