:root {
  color-scheme: dark;
  --outer: #050d18;
  --frame: #0c1f36;
  --panel: #112945;
  --box: #0a1a2e;
  --ink: #f3f5f7;
  --cream: #f6f1e4;
  --ink-soft: #c3d1df;
  --ink-faint: #94a9be;
  --rule: rgba(160, 200, 240, 0.16);
  --sand: #e0c591;
  --sand-rule: #c9ac74;
  --tile-a: #1d4f8c;
  --tile-b: #153d70;
  --sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--outer); color: var(--ink);
       font-family: var(--sans); font-weight: 400; font-size: 18px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-weight: 400; margin: 0; }

/* Small spaced capitals for labels. Never under 12 pixels. */
.caps { text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; line-height: 1.5; }

/* The ground and the frame */
.site { min-height: 100vh; padding: 30px 0 48px;
        background:
          radial-gradient(ellipse at 20% 0%, rgba(29, 79, 140, 0.30), transparent 46%),
          radial-gradient(ellipse at 85% 12%, rgba(21, 61, 112, 0.24), transparent 40%),
          var(--outer); }
.frame { width: min(1120px, calc(100% - 44px)); margin: 0 auto; background: var(--frame);
         border: 1px solid rgba(160, 200, 240, 0.22); border-radius: 14px; overflow: hidden;
         box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); }
.wrap { padding: 0 44px; }

/* The top line: the name small, and the menu */
.top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
       gap: 8px 30px; padding: 20px 44px; }
.top .home { letter-spacing: 0.16em; text-transform: uppercase; font-size: 14px; color: var(--cream); }
.menu { display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: 15px; color: var(--ink-soft); }
.menu a:hover { color: var(--cream); }

/* The header card: the pool. A picture goes here later. */
.pool { position: relative; margin: 0 44px; border-radius: 10px; overflow: hidden;
        border: 1px solid rgba(8, 24, 50, 0.9);
        background: linear-gradient(180deg, var(--tile-a) 0%, var(--tile-b) 100%);
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35); }
.coping { height: 5px; background: linear-gradient(180deg, #e3cc9f, #bfa069); }
.tiles { height: 14px;
         background:
           repeating-linear-gradient(90deg, rgba(8, 24, 50, 0.55) 0 2px, transparent 2px 46px),
           linear-gradient(180deg, #2a62a6, #1b4a86);
         border-bottom: 2px solid rgba(8, 24, 50, 0.45); }
.water { position: relative; min-height: 250px; display: flex; align-items: flex-end; padding: 40px 44px 38px; }
.net { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.22; }
.water > div { position: relative; }
.name { text-transform: uppercase; font-weight: 600; letter-spacing: 0.05em; line-height: 1.1;
        font-size: clamp(32px, 4.6vw, 54px); color: var(--cream); }
.who { margin: 12px 0 0; font-size: 18px; color: #dbe6f1; }

/* Sections inside the frame */
section.wrap { padding-top: 46px; }
.label { color: var(--sand); margin: 0 0 10px; }

/* A place for a picture not yet made, and the picture once it is. */
.pic { display: flex; align-items: center; justify-content: center; border-radius: 6px;
       border: 1px solid rgba(160, 200, 240, 0.22); color: rgba(220, 235, 250, 0.6);
       font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
       background: linear-gradient(135deg, #1f558f 0%, #2f6fb0 48%, #123459 100%); }
.pic.b { background: linear-gradient(200deg, #2a66a8 0%, #174274 60%, #0e2a4b 100%); }
.pic.c { background: linear-gradient(160deg, #14385f 0%, #2c69a8 70%, #3b7dbd 100%); }
.pic.d { background: linear-gradient(320deg, #2f6fb0 0%, #1a4a80 50%, #102f52 100%); }
img.pic { display: block; width: 100%; height: auto; object-fit: cover; }

/* The newest short: a panel with a picture beside the opening. */
.newest { display: grid; grid-template-columns: 300px 1fr; gap: 34px; padding: 28px;
          background: var(--panel); border: 1px solid var(--rule); border-radius: 10px; }
.newest .pic { aspect-ratio: 4 / 3; align-self: start; }
.newest h2 { font-size: 32px; line-height: 1.2; color: var(--cream); margin: 0 0 12px; }
.newest .date { color: var(--ink-faint); font-size: 14px; margin: 0 0 14px; }
.newest .opening p { max-width: 36em; }
.more { display: inline-block; margin-top: 4px; color: var(--sand); }

/* The shelf */
.shelf-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
              gap: 6px 30px; margin: 0 0 18px; }
.shelf-head h2 { font-size: 30px; color: var(--cream); }
.shelf-head a { color: var(--sand); }
.group { padding: 24px 28px 28px; margin: 0 0 18px; background: var(--panel);
         border: 1px solid var(--rule); border-radius: 10px; }
.group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px;
              padding: 0 0 16px; margin: 0 0 20px; border-bottom: 1px solid var(--rule); }
.group-head h3 { color: var(--sand); letter-spacing: 0.12em; text-transform: uppercase; font-size: 14px; }
.group-head p { margin: 0; color: var(--ink-faint); font-size: 15px; }
.shorts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 40px; }
.shorts li a { display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: start; }
.shorts li a:hover { text-decoration: none; }
.shorts li a:hover .t { text-decoration: underline; text-underline-offset: 0.2em; }
.shorts .pic { width: 84px; height: 63px; font-size: 0; }
.shorts .t { display: block; font-size: 19px; line-height: 1.3; color: var(--cream); margin: 0 0 3px; }
.shorts .line { display: block; font-size: 15px; line-height: 1.45; color: var(--ink-soft); }

/* Origo: the four parts together, on the tile blue. */
.origo { background: linear-gradient(180deg, var(--tile-a) 0%, var(--tile-b) 100%);
         border-color: rgba(8, 24, 50, 0.9); padding: 0 0 28px; overflow: hidden; }
.origo .group-head { margin: 24px 28px 20px; border-bottom-color: rgba(230, 240, 250, 0.22); }
.origo .group-head h3 { color: var(--cream); font-size: 20px; letter-spacing: 0.16em; }
.origo .group-head p { color: #dbe6f1; }
.parts { list-style: none; margin: 0; padding: 0 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.parts a { display: block; }
.parts a:hover { text-decoration: none; }
.parts a:hover .t { text-decoration: underline; text-underline-offset: 0.2em; }
.parts .pic { aspect-ratio: 4 / 3; margin: 0 0 12px; font-size: 0; border-color: rgba(230, 240, 250, 0.3); }
.parts .n { display: block; color: var(--sand); margin: 0 0 4px; }
.parts .t { display: block; font-size: 19px; line-height: 1.3; color: var(--cream); margin: 0 0 3px; }
.parts .line { display: block; font-size: 15px; line-height: 1.45; color: #dbe6f1; }

/* The book band */
.book { margin: 46px 0 0; padding: 0; color: var(--cream);
        background: linear-gradient(180deg, var(--tile-a) 0%, var(--tile-b) 100%); }
.book .inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
               gap: 22px 40px; padding: 34px 44px 38px; }
.book .label { color: #dbe6f1; margin: 0 0 4px; }
.book h2 { font-size: 28px; letter-spacing: 0.02em; }
.book p.say { margin: 8px 0 0; max-width: 34em; font-size: 16px; color: #dbe6f1; }
.button { display: inline-block; padding: 13px 22px; border-radius: 3px; background: var(--sand);
          color: #10233c; letter-spacing: 0.1em; text-transform: uppercase; font-size: 13px; }
.button:hover { background: #f0dcb4; text-decoration: none; }
.book .second { display: block; margin-top: 12px; font-size: 15px; color: var(--sand); text-align: center; }

/* About, and the foot */
.about { display: grid; grid-template-columns: 220px 1fr; gap: 20px 40px; padding: 40px 44px 44px; }
.about h2 { color: var(--sand); letter-spacing: 0.12em; text-transform: uppercase; font-size: 14px; line-height: 1.6; }
.about p { max-width: 36em; margin: 0; }
.about p a { color: var(--sand); }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 30px;
         padding: 20px 44px 26px; border-top: 1px solid var(--rule); color: var(--ink-faint); font-size: 14px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 24px; }

/* A short's page */
.top.ruled { border-bottom: 1px solid var(--rule); }
.reading { max-width: 760px; margin: 40px auto 0; background: var(--box);
           border: 1px solid var(--rule); border-radius: 10px; overflow: hidden;
           box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3); }
.reading > .pic { aspect-ratio: 16 / 6; border-radius: 0; border-width: 0 0 1px; }
.piece { padding: 36px 52px 40px; }
.crumb { margin: 0 0 14px; color: var(--sand); }
.piece h1 { font-size: clamp(30px, 4.4vw, 42px); line-height: 1.15; color: var(--cream); margin: 0 0 8px; }
.byline { color: var(--ink-faint); font-size: 14px; margin: 0; }
.piece hr { width: 84px; height: 2px; border: 0; background: var(--sand-rule); margin: 24px 0 30px; }
.body { font-size: 20px; line-height: 1.72; }
.body p { margin: 0 0 1.15em; }
.body p:last-child { margin-bottom: 0; }
.around { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 40px; max-width: 760px; margin: 0 auto; padding: 30px 0 0; }
.around .label { margin: 0 0 4px; color: var(--ink-faint); }
.around a { font-size: 19px; color: var(--cream); }
.around .next { text-align: right; }
.back { text-align: center; margin: 26px 0 0; }
.back a { color: var(--sand); }
.closeband .inner { justify-content: center; text-align: center; flex-direction: column; gap: 16px; }

@media (max-width: 800px) {
  .frame { width: calc(100% - 20px); border-radius: 10px; }
  .wrap, .top, .book .inner, .about, footer { padding-left: 20px; padding-right: 20px; }
  .pool { margin: 0 20px; }
  .water { min-height: 190px; padding: 28px 22px 26px; }
  .newest, .about { grid-template-columns: 1fr; }
  .shorts { grid-template-columns: 1fr; }
  .parts { grid-template-columns: 1fr 1fr; }
  .group { padding: 20px 18px 22px; }
  .origo { padding: 0 0 22px; }
  .origo .group-head { margin: 20px 18px 18px; }
  .parts { padding: 0 18px; }
  .reading { margin-left: 10px; margin-right: 10px; }
  .piece { padding: 26px 22px 30px; }
  .body { font-size: 18px; }
  .around { padding-left: 20px; padding-right: 20px; }
  .around .next { text-align: left; }
}
@media (max-width: 480px) { .parts, .around { grid-template-columns: 1fr; } }
