/* Grainera — darkroom gallery theme. Dependency-free. */

:root {
  --bg:            #141210;
  --bg-2:          #1a1714;
  --panel:         #1c1916;
  --brass:         #b8904f;
  --brass-hover:   #c9a86a;
  --amber:         #d99a4e;
  --amber-bright:  #f4cd84;
  --text:          #e9e4dc;
  --text-dim:      #9a9a9a;
  --rule:          rgba(184, 144, 79, 0.28);

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

  --maxw: 760px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  /* subtle darker vignette toward the edges */
  background-image: radial-gradient(120% 90% at 50% 28%, var(--bg-2) 0%, var(--bg) 62%, #100e0c 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: 0.005em;
}

/* ---------- Layout ---------- */

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  padding: 30px 0 22px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 44px;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
}

.site-header .brand img {
  width: 52px;
  height: 52px;
  display: block;
  flex: 0 0 auto;
}

.site-header .brand .name {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--text);
}

main { padding-bottom: 72px; }

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
}

h1 {
  font-size: 2rem;
  margin: 0 0 6px;
  letter-spacing: 0.01em;
}

h1 + .updated { margin-top: 0; }

h2 {
  font-size: 1.32rem;
  margin: 44px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}

h3 {
  font-size: 1.08rem;
  margin: 28px 0 6px;
  color: #d8d0c4;
}

p { margin: 0 0 16px; }

a {
  color: var(--brass);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}

a:hover, a:focus {
  color: var(--brass-hover);
  border-bottom-color: var(--brass-hover);
}

a:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}

strong { color: #f1ece4; font-weight: 600; }

ul { padding-left: 1.25em; margin: 0 0 16px; }
li { margin: 0 0 8px; }

address {
  font-style: normal;
  line-height: 1.65;
}

.updated {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin: 0 0 28px;
}

.placeholder {
  display: inline-block;
  background: rgba(217, 154, 78, 0.12);
  border: 1px solid rgba(217, 154, 78, 0.4);
  color: var(--amber-bright);
  border-radius: 3px;
  padding: 0 6px;
  font-family: var(--sans);
  font-size: 0.86em;
}

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 40px 0;
}

.muted { color: var(--text-dim); }
.note {
  font-size: 0.95rem;
  color: var(--text-dim);
  border-left: 2px solid var(--brass);
  padding: 4px 0 4px 16px;
  margin: 24px 0;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 26px 0 48px;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
  justify-content: space-between;
}

.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--text-dim); }
.site-footer a:hover { color: var(--brass-hover); border-bottom-color: transparent; }
.site-footer a[aria-current="page"] { color: var(--brass); }

/* ---------- Landing ---------- */

.landing { text-align: center; }

.landing.site-header { border-bottom: 0; margin-bottom: 0; }

.hero {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 56px 24px 40px;
}

.hero .logo-glow {
  position: relative;
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
}

/* one subtle warm glow behind the hero logo */
.hero .logo-glow::before {
  content: "";
  position: absolute;
  inset: -40% ;
  background: radial-gradient(circle at 50% 46%, rgba(217,154,78,0.22) 0%, rgba(217,154,78,0.08) 38%, rgba(217,154,78,0) 70%);
  z-index: 0;
  pointer-events: none;
}

.hero .logo-glow img {
  position: relative;
  z-index: 1;
  width: 150px;
  height: 150px;
  display: block;
}

.hero .wordmark {
  font-family: var(--serif);
  font-size: 2.7rem;
  letter-spacing: 0.04em;
  margin: 0 0 10px;
  color: var(--text);
}

.hero .tagline {
  color: var(--text-dim);
  max-width: 30em;
  margin: 0 auto 36px;
  font-size: 1.02rem;
}

.hero nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  justify-content: center;
}

.hero nav a {
  font-size: 1.02rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
}

.hero .dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber-bright);
  box-shadow: 0 0 8px 1px rgba(244,205,132,0.6);
  vertical-align: middle;
}

/* ---------- Responsive ---------- */

@media (max-width: 600px) {
  body { font-size: 16px; }
  .site-header { padding: 22px 0 18px; margin-bottom: 32px; }
  .site-header .brand img { width: 46px; height: 46px; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.2rem; }
  .hero .wordmark { font-size: 2.2rem; }
  .hero .logo-glow, .hero .logo-glow img { width: 124px; height: 124px; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: no-preference) {
  a { transition: color .15s ease, border-color .15s ease; }
}
