/* Hand-authored site styles. Tokens come from tokens.css (copied from theme/ at build). Spec §7 */

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

[hidden] { display: none !important; }

html { background: var(--parchment); }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-inline: var(--gutter);
  color: var(--ink);
  font: 500 1.0625rem/1.6 var(--font-body);
  background:
    radial-gradient(ellipse at center, transparent 55%, rgba(120, 90, 50, 0.10) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%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 .25 0 0 0 0 .12 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E"),
    var(--parchment);
  background-attachment: fixed;
}

a { color: var(--turquoise); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terracotta); }
a:focus-visible { outline: 2px solid var(--turquoise); outline-offset: 2px; }
::selection { background: var(--adobe); }

h1, h2, h3 {
  margin: 0 0 0.3em;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.05;
  color: var(--espresso);
}

img { max-width: 100%; }

.wrap { width: 100%; max-width: var(--measure); margin-inline: auto; }

.wordmark { font-family: var(--font-display); color: var(--espresso); text-decoration: none; line-height: 1; }
a.wordmark:hover { color: var(--terracotta); }

/* --- header --- */
.site-header { padding-block: 20px; border-bottom: 1px solid var(--parchment-shade); }
.site-header .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; justify-content: space-between; }
.site-header .wordmark { font-size: 1.6rem; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.04em; }

/* --- title bar --- */
.titlebar { background: var(--espresso); color: var(--parchment); padding: 0.3em 0.55em 0.2em; }
.titlebar h1,
.titlebar h2 { margin: 0; color: var(--parchment); }

/* --- landing --- */
.site-main { flex: 1; padding-block: clamp(32px, 8vw, 72px); }
.hero .titlebar { text-align: center; }
.hero h1 { font-size: clamp(2.6rem, 10vw, 6.25rem); }

.art-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; margin-top: 32px; }
.frame { margin: 0; border: 1.5px solid var(--espresso); aspect-ratio: 1; overflow: hidden; max-width: 100%; }
.frame img { display: block; width: 100%; height: 100%; object-fit: cover; }

.cta { margin-top: 32px; text-align: center; }
.button {
  display: inline-block;
  padding: 12px 22px;
  background: var(--espresso);
  color: var(--parchment);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}
.button:hover { background: var(--terracotta); color: var(--parchment); }

.downloads { margin-top: 48px; }
.downloads h2 { font-size: 2.2rem; }
.downloads ul { padding-left: 1.2em; }

/* --- footer --- */
.site-footer { padding-block: 18px 28px; border-top: 1px solid var(--parchment-shade); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: end; justify-content: space-between; }
.site-footer .wordmark { font-size: 1.3rem; }
.attribution { text-align: center; font-family: var(--font-display); color: var(--ink); line-height: 1; }
.attribution small { display: block; font-size: 0.8rem; }
.attribution span { font-size: 1.5rem; }
