/* ==========================================================================
   vertigan.au — shared stylesheet (lives in the site root)
   Pages load it relatively: vertigan.css, ../vertigan.css, ../../vertigan.css …
   Self-contained: no web fonts, no image files — grain is inline SVG.
   ========================================================================== */

:root {
  --wood-deep:  #24150c;
  --wood:       #6b3e20;
  --wood-light: #a8703f;
  --brass:      #c9a05a;
  --brass-hi:   #ecd39a;
  --paper:      #f6eedc;
  --paper-deep: #ebdcbd;
  --ink:        #2a1d14;
  --ink-soft:   #5e4a39;
  --mahogany:   #8a2e14;
  --mahogany-d: #631f0c;
  --rule:       #b8976a;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
           "URW Palladio L", Georgia, serif;
  --mono:  "Courier New", Courier, ui-monospace, monospace;

  /* long horizontal wood grain, inline SVG */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.006 .28' numOctaves='4' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .12 0 0 0 0 .06 0 0 0 0 .02 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  /* fine paper fibre */
  --fibre: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .26 0 0 0 0 .16 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  --measure: 44rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 112.5%; }

/* ---------- the wall: dark polished walnut ---------- */
body {
  margin: 0;
  min-height: 100vh;
  padding: 2.5rem 1rem;
  color: var(--ink);
  background-color: #3a2213;
  background-image:
    linear-gradient(180deg, rgba(255,220,170,.10), rgba(0,0,0,.35)),
    var(--grain);
  font-family: var(--serif);
  line-height: 1.6;
  font-feature-settings: "kern", "liga", "onum";
}

/* ---------- the frame: lighter polished timber with bevel + sheen ---------- */
.frame {
  max-width: calc(var(--measure) + 8rem);
  margin: 0 auto;
  padding: 0 1.4rem;
  border-radius: 3px;
  background-color: var(--wood);
  background-image:
    linear-gradient(125deg, rgba(255,236,200,.28) 0%, rgba(255,236,200,0) 30%,
                            rgba(0,0,0,0) 60%, rgba(0,0,0,.30) 100%),
    var(--grain);
  box-shadow:
    0 22px 45px rgba(0,0,0,.6),
    0 4px 10px rgba(0,0,0,.4),
    inset 2px 2px 0 rgba(255,228,185,.35),     /* top-left highlight */
    inset -2px -2px 0 rgba(0,0,0,.5),          /* bottom-right shade  */
    inset 0 0 0 1px var(--wood-deep);
}

/* ---------- engraved brass-on-timber masthead ---------- */
.masthead { padding: 1.8rem 0 1.4rem; text-align: center; }
.wordmark {
  display: inline-block;
  font-size: 2.6rem;
  letter-spacing: .24em;
  padding-left: .24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--brass-hi);
  text-shadow: 0 -1px 0 rgba(0,0,0,.7), 0 1px 0 rgba(255,230,180,.25),
               0 0 12px rgba(236,211,154,.15);
}
.wordmark:hover { color: #fff1cc; }
.tagline {
  margin: .1rem 0 0;
  font-style: italic;
  color: #e2c896;
  text-shadow: 0 -1px 0 rgba(0,0,0,.6);
}

/* ---------- the canvas: paper set into the frame behind a gilt slip ---------- */
.canvas {
  display: block;
  background-color: var(--paper);
  background-image: radial-gradient(ellipse at 30% 0%, rgba(255,252,240,.8), transparent 70%),
                    var(--fibre);
  padding: 2rem 0 1.5rem;
  box-shadow:
    0 0 0 2px var(--brass),
    0 0 0 3px #7a5523,
    0 0 0 6px var(--wood-deep),
    inset 0 4px 12px rgba(60,30,10,.35),       /* recessed behind the frame */
    inset 0 0 40px rgba(120,80,40,.12);
}
.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 1.5rem; }

/* ---------- type ---------- */
a { color: var(--mahogany); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover, a:focus { color: var(--mahogany-d); text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px dashed var(--mahogany); outline-offset: 3px; }
a.away::after { content: " \2197"; font-size: .8em; }

h1, h2, h3 { font-weight: normal; line-height: 1.2; margin: 1.6em 0 .5em; }
h1 { font-size: 2.2rem; margin-top: .2em; }
h2 {
  font-size: 1.05rem; font-variant: small-caps; text-transform: lowercase;
  letter-spacing: .14em; color: var(--ink-soft);
  border-bottom: 1px solid var(--rule); padding-bottom: .2em;
}
h3 { font-size: 1.2rem; font-style: italic; }
p, ul, ol { margin: 0 0 1em; }

code, pre, kbd { font-family: var(--mono); font-size: .88em; }
pre {
  background: var(--paper-deep);
  border-left: 4px solid var(--wood-light);
  padding: .8rem 1rem;
  overflow-x: auto;
  box-shadow: inset 0 1px 3px rgba(60,30,10,.2);
}

.fleuron { text-align: center; margin: 2.2rem 0; color: var(--brass); }
.fleuron::before { content: "\2767"; font-size: 1.5rem; }

.lede { font-size: 1.15rem; color: var(--ink-soft); display: flow-root; }
.lede::first-letter {
  float: left; font-size: 3.4em; line-height: .85;
  padding: .06em .08em 0 0; color: var(--mahogany);
}

/* breadcrumb trail */
.crumbs { font-size: .9rem; font-variant: small-caps; letter-spacing: .08em;
          margin: 0 0 1.2rem; color: var(--ink-soft); }
.crumbs ol { list-style: none; margin: 0; padding: 0; }
.crumbs li { display: inline; }
.crumbs li + li::before { content: " / "; color: var(--rule); }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--mahogany); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); }

/* ---------- cards: small framed panels ---------- */
.cards {
  list-style: none; padding: 0; margin: 1.6rem 0 2rem;
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.card {
  position: relative;
  padding: 1.1rem 1.3rem 1rem;
  background: #fbf5e7;
  border: 7px solid;
  border-image: linear-gradient(135deg, var(--wood-light), var(--wood) 45%, #3e2312) 1;
  box-shadow: inset 0 0 0 1px var(--brass), 2px 5px 9px rgba(50,25,8,.3);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px var(--brass), 3px 9px 14px rgba(50,25,8,.35);
}
.card h3 { margin: 0 0 .3rem; font-style: normal; font-size: 1.25rem; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }   /* whole card clickable */
.card p { margin: 0 0 .4rem; font-size: .95rem; color: var(--ink-soft); }
.card .motto { font-style: italic; color: var(--ink); }
.card .host { display: block; margin-top: .5rem; font-family: var(--mono);
              font-size: .75rem; color: #6a5a3a; }

.stamp {
  display: inline-block; border: 2px solid var(--mahogany); color: var(--mahogany);
  padding: .05em .5em; font-size: .75rem; letter-spacing: .15em;
  text-transform: uppercase; transform: rotate(-2deg); opacity: .85; vertical-align: middle;
}

/* ---------- footer: back on the timber ---------- */
.colophon { padding: 1.3rem 0 1.5rem; text-align: center; font-size: .85rem; color: #e2c896; }
.colophon a { color: var(--brass-hi); margin: 0 .5em; text-shadow: 0 -1px 0 rgba(0,0,0,.6); }
.colophon a:hover { color: #fff1cc; }
.colophon p { margin: .6rem 0 0; font-style: italic; text-shadow: 0 -1px 0 rgba(0,0,0,.6); }

/* ---------- small screens / print ---------- */
@media (max-width: 34rem) {
  html { font-size: 100%; }
  body { padding: .6rem .4rem; }
  .frame { padding: 0 .7rem; }
  .wrap { padding: 0 1rem; }
  .wordmark { font-size: 2rem; letter-spacing: .15em; }
  h1 { font-size: 1.8rem; }
}
@media print {
  body, .frame { background: #fff; box-shadow: none; padding: 0; }
  .canvas { box-shadow: none; }
  .wordmark, .tagline, .colophon, .colophon a { color: var(--ink); text-shadow: none; }
}
