@font-face {
  font-family: "Familjen Grotesk";
  src: url("/static/fonts/familjen-grotesk-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Familjen Grotesk";
  src: url("/static/fonts/familjen-grotesk-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Familjen Grotesk";
  src: url("/static/fonts/familjen-grotesk-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #101614;
  --night-2: #1a2420;
  --line: rgba(244, 240, 230, .14);
  --paper: #f4f0e6;
  --ink: #17211c;
  --soft: #5c675f;
  --sea: #143f38;
  --here: #1b7a45;
  --away: #8a5a12;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { background: var(--night); }
body {
  min-height: 100dvh;
  background: var(--night);
  color: var(--paper);
  font-family: "Familjen Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.4;
}

a { color: inherit; }
button, input { font: inherit; color: inherit; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 0;
}
.mark {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.story {
  color: rgba(244, 240, 230, .62);
  font-size: 14px;
  text-decoration: none;
}
.story:hover { color: var(--paper); }

.desk {
  display: grid;
  gap: 22px;
  padding: 28px 22px 18px;
}
.intro h1 {
  margin: 0;
  max-width: 8ch;
  font-weight: 500;
  font-size: clamp(3.5rem, 12vw, 6.6rem);
  line-height: 0.86;
  letter-spacing: -0.055em;
}
.intro p {
  max-width: 34rem;
  margin: 18px 0 0;
  color: rgba(244, 240, 230, .72);
  font-size: 1.05rem;
}
.open {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
}
.open button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.open button:hover { color: #fff; }

.sheet {
  background: var(--paper);
  color: var(--ink);
  min-height: 28rem;
  display: flex;
  flex-direction: column;
  padding: 18px 18px 14px;
}
.sheet-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(23, 33, 28, .12);
}
.sheet-top b {
  display: block;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.sheet-top small { color: var(--soft); font-size: 13px; }
.stamp {
  flex: none;
  margin-top: 4px;
  color: var(--here);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.log { padding: 8px 0 4px; }
.day {
  margin: 10px 0;
  color: var(--soft);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.log article { padding: 10px 0 12px; border-top: 1px solid rgba(23, 33, 28, .08); }
.who {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-size: 13px;
}
.who b { font-weight: 600; }
.who i { color: var(--away); font-style: normal; font-weight: 600; }
.who i.here { color: var(--here); }
.who time { margin-left: auto; color: var(--soft); font-variant-numeric: tabular-nums; }
.log p { margin: 4px 0 0; font-size: 1.05rem; }

.note {
  margin: auto 0 12px;
  color: var(--soft);
  font-size: 13px;
}

.door { display: grid; gap: 8px; }
.door label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--soft);
}
.door input {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid rgba(23, 33, 28, .22);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
}
.door input:focus { outline: 2px solid var(--sea); outline-offset: 1px; }
.door button {
  min-height: 48px;
  border: 0;
  background: var(--sea);
  color: var(--paper);
  font-weight: 600;
  letter-spacing: -0.02em;
  cursor: pointer;
}
.door button:hover { background: #0f312c; }
.door button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 22px 22px;
  color: rgba(244, 240, 230, .45);
  font-size: 13px;
}
.links { display: flex; gap: 14px; }
.links a { color: inherit; text-decoration: none; }
.links a:hover { color: var(--paper); }

@media (min-width: 900px) {
  .top { padding: 22px 40px 0; }
  .desk {
    grid-template-columns: minmax(280px, .9fr) minmax(380px, 1fr);
    align-items: end;
    gap: 48px;
    min-height: calc(100dvh - 88px);
    padding: 18px 40px 12px;
  }
  .intro h1 { font-size: clamp(4.6rem, 7vw, 7.2rem); }
  .sheet { min-height: 36rem; padding: 22px 26px 18px; }
  footer { padding: 0 40px 22px; }
}

@media (max-width: 640px) {
  .intro h1 { font-size: 3.4rem; }
  .sheet { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
}
