/* ==========================================================================
   Strawnarts — shared stylesheet
   Every page links to this one file. Change a color here, it changes
   everywhere. The variables below are the main dials worth touching.
   ========================================================================== */

:root {
  --paper:      #f8f5ef;
  --paper-warm: #f1ece2;
  --ink:        #1f1b16;
  --ink-soft:   #574f45;
  --ink-faint:  #8b8175;
  --rule:       #ddd5c8;
  --accent:     #9c5c33;

  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --measure: 44rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:      #16130f;
    --paper-warm: #1e1a15;
    --ink:        #f4efe6;
    --ink-soft:   #b8ae9f;
    --ink-faint:  #7e7466;
    --rule:       #332d25;
    --accent:     #d08b5a;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
  background:
    radial-gradient(ellipse at 15% 0%,   rgba(156, 92, 51, .06), transparent 55%),
    radial-gradient(ellipse at 85% 100%, rgba(80, 96, 74, .05), transparent 55%);
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.75rem;
}

.wrap.wide { max-width: 60rem; }

/* ---------- masthead ---------- */

header.site {
  padding: 2.75rem 0 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.wordmark {
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
  text-decoration: none;
}

a.wordmark:hover, a.wordmark:focus-visible { color: var(--accent); }

nav.site {
  font-family: var(--sans);
  font-size: .82rem;
  display: flex;
  gap: 1.15rem;
  flex-wrap: wrap;
}

nav.site a {
  color: var(--ink-faint);
  text-decoration: none;
  padding-bottom: .15rem;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}

nav.site a:hover,
nav.site a:focus-visible,
nav.site a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* ---------- type ---------- */

h1 {
  font-size: clamp(2.4rem, 7vw, 3.9rem);
  line-height: 1.06;
  letter-spacing: -.02em;
  font-weight: 400;
  margin: 0 0 1.5rem;
}

h1 em { font-style: italic; color: var(--accent); }

h2 {
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.15rem;
  font-weight: 400;
  margin: 0 0 .4rem;
}

p { margin: 0 0 1.15rem; }
p:last-child { margin-bottom: 0; }

.standfirst {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 34rem;
  margin: 0;
}

.prose { color: var(--ink-soft); max-width: 36rem; }
.prose strong { color: var(--ink); font-weight: 600; }

.label {
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 1.25rem;
}

/* ---------- layout blocks ---------- */

.hero {
  padding: 4rem 0 3.25rem;
  border-bottom: 1px solid var(--rule);
}

.hero.compact { padding: 3rem 0 2.25rem; }

section {
  padding: 3.25rem 0;
  border-bottom: 1px solid var(--rule);
}

section.last { border-bottom: none; }

/* ---------- featured card ---------- */

a.featured {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 2rem 2rem 1.75rem;
  transition: border-color .18s ease, transform .18s ease;
}

a.featured:hover,
a.featured:focus-visible {
  border-color: var(--accent);
  transform: translateY(-2px);
}

a.featured .kicker {
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: .75rem;
}

a.featured .title {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-style: italic;
  line-height: 1.15;
  display: block;
  margin-bottom: .85rem;
}

a.featured .logline {
  color: var(--ink-soft);
  margin: 0 0 1.25rem;
  max-width: 34rem;
}

a.featured .more {
  font-family: var(--sans);
  font-size: .82rem;
  color: var(--accent);
}

/* ---------- discipline index ---------- */

ul.rooms {
  list-style: none;
  margin: 0;
  padding: 0;
}

ul.rooms li { border-top: 1px solid var(--rule); }
ul.rooms li:first-child { border-top: none; }

ul.rooms a {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 1.35rem .5rem 1.35rem 0;
  text-decoration: none;
  color: inherit;
  transition: padding-left .18s ease, color .18s ease;
}

ul.rooms a:hover,
ul.rooms a:focus-visible {
  padding-left: .6rem;
  color: var(--accent);
}

ul.rooms .name { font-size: 1.25rem; flex: 1 1 10rem; }
ul.rooms .blurb { color: var(--ink-faint); font-size: .95rem; flex: 2 1 16rem; }

/* ---------- status pill ---------- */

.status {
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border: 1px solid var(--rule);
  border-radius: 2rem;
  padding: .3rem .7rem;
  white-space: nowrap;
  display: inline-block;
}

.status.live { color: var(--accent); border-color: var(--accent); }

/* ---------- gallery ----------
   Drop <figure> blocks into .gallery. It reflows on its own.
   -------------------------------------------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}

.gallery figure {
  margin: 0;
}

.gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 3px;
  background: var(--paper-warm);
}

.gallery figcaption {
  font-family: var(--sans);
  font-size: .8rem;
  color: var(--ink-faint);
  margin-top: .6rem;
}

/* Placeholder tile, used until real work goes up. */
.gallery .placeholder {
  aspect-ratio: 4 / 3;
  border: 1px dashed var(--rule);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  background: var(--paper-warm);
}

/* ---------- empty state ---------- */

.empty {
  border: 1px dashed var(--rule);
  border-radius: 4px;
  padding: 2.5rem 2rem;
  text-align: center;
  color: var(--ink-faint);
  font-family: var(--sans);
  font-size: .92rem;
}

/* ---------- links ---------- */

a.mail, a.inline {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: .08rem;
  transition: color .18s ease;
}

a.mail { font-size: 1.25rem; }
a.mail:hover, a.inline:hover,
a.mail:focus-visible, a.inline:focus-visible { color: var(--ink); }

a.back {
  font-family: var(--sans);
  font-size: .82rem;
  color: var(--ink-faint);
  text-decoration: none;
}

a.back:hover, a.back:focus-visible { color: var(--accent); }

/* ---------- footer ---------- */

footer.site {
  padding: 2.5rem 0 4rem;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: .8rem;
  color: var(--ink-faint);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

footer.site p { margin: 0; }
footer.site a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--rule); }
footer.site a:hover, footer.site a:focus-visible { color: var(--accent); }

/* ---------- responsive & a11y ---------- */

@media (max-width: 34rem) {
  body { font-size: 17px; }
  header.site { padding-top: 2rem; }
  .hero { padding: 2.75rem 0 2.25rem; }
  section { padding: 2.5rem 0; }
  .standfirst { font-size: 1.08rem; }
  a.featured { padding: 1.5rem 1.35rem 1.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
