/* Kiln Log — a firing record for the first twelve weeks of side work
   slip / soot / bisque / celadon / heat / cobalt */

:root {
  --slip:    #DAD7D0;
  --bisque:  #F1ECE4;
  --soot:    #1E1C1F;
  --soot-2:  #4A4649;
  --celadon: #A7C4B5;
  --heat:    #E8641E;
  --cobalt:  #2B4C8C;
  --line:    #BDB8AE;

  --display: 'Young Serif', Georgia, serif;
  --body:    'Public Sans', system-ui, sans-serif;
  --mono:    'Victor Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--slip);
  color: var(--soot);
  font-family: var(--body);
  font-size: 1.03rem;
  line-height: 1.66;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--cobalt); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--heat); }
a:focus-visible { outline: 3px solid var(--heat); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--heat); color: var(--soot); padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- header: kiln shelf ---------- */

.shelf { background: var(--soot); color: var(--bisque); }
.shelf__in { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--display); font-size: 1.45rem; color: var(--bisque); text-decoration: none; }
.brand svg { width: 26px; height: 30px; }
.brand:hover { color: var(--heat); }
.shelf nav { display: flex; gap: 1.4rem; font-family: var(--mono); font-size: .82rem; }
.shelf nav a { color: var(--bisque); text-decoration: none; }
.shelf nav a:hover { color: var(--heat); }
.shelf__glow { height: 6px; background: linear-gradient(90deg, var(--soot) 0%, #6B2A10 30%, var(--heat) 55%, #FFB067 70%, var(--heat) 85%, var(--soot) 100%); }

/* ---------- type ---------- */

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0 0 1rem; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.22rem; }

.stamp {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .78rem; font-style: italic; color: var(--soot-2); margin: 0 0 1rem;
}
.stamp::before { content: ''; width: 14px; height: 14px; border: 2px solid var(--cobalt); border-radius: 50%; }
.lede { font-size: 1.18rem; color: var(--soot-2); max-width: 35em; }
.prose { max-width: 40em; }
.prose p { margin: 0 0 1rem; }

/* ---------- hero + firing record card ---------- */

.hero { padding: 4.2rem 0 3.5rem; }
.hero__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: start; }
.hero h1 em { font-style: normal; color: var(--heat); }

.record { background: var(--bisque); border: 1px solid var(--soot); font-family: var(--mono); font-size: .84rem; transform: rotate(.6deg); box-shadow: -6px 8px 0 var(--celadon); }
.record__head { display: flex; justify-content: space-between; padding: .7rem 1rem; border-bottom: 1px solid var(--soot); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; }
.record table { width: 100%; border-collapse: collapse; }
.record th, .record td { text-align: left; padding: .55rem 1rem; border-bottom: 1px dashed var(--line); vertical-align: top; }
.record th { font-weight: 500; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--soot-2); }
.record td:first-child { white-space: nowrap; color: var(--cobalt); }
.record__foot { padding: .7rem 1rem; font-size: .76rem; color: var(--soot-2); font-style: italic; }

/* ---------- firing curve (signature) ---------- */

.firing { padding: 4rem 0; background: var(--soot); color: var(--bisque); }
.firing .stamp { color: #C9C2B8; }
.firing .stamp::before { border-color: var(--heat); }
.firing .prose { color: #D9D3CA; }
.firing__intro { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; margin-bottom: 2rem; }
.curve { margin: 0; }
.curve svg { width: 100%; height: auto; }
.curve .band { fill: #2A272B; }
.curve .band.alt { fill: #262326; }
.curve .grid { stroke: #3A363A; stroke-width: 1; }
.curve .temp { fill: none; stroke: var(--heat); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1400; animation: heat 2.6s ease-out both; filter: drop-shadow(0 0 6px rgba(232,100,30,.55)); }
.curve .cone { fill: var(--bisque); }
.curve .cone.bent { fill: var(--celadon); }
.curve text { font-family: var(--mono); font-size: 10px; fill: #BDB6AC; }
.curve text.stage { fill: var(--bisque); font-size: 11px; letter-spacing: .08em; }
.curve figcaption { font-family: var(--mono); font-size: .78rem; color: #BDB6AC; margin-top: 1rem; max-width: 62em; }
@keyframes heat { from { stroke-dashoffset: 1400; } to { stroke-dashoffset: 0; } }

.cones { list-style: none; padding: 0; margin: 2.2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.cones li { border-left: 3px solid var(--celadon); padding-left: 1rem; }
.cones h3 { color: var(--bisque); }
.cones p { margin: 0; color: #D9D3CA; font-size: .97rem; }

/* ---------- kiln log table ---------- */

.log-sec { padding: 4rem 0; }
.log-wrap { overflow-x: auto; margin-top: 1.5rem; background: var(--bisque); border: 1px solid var(--soot); }
.log { width: 100%; min-width: 780px; border-collapse: collapse; }
.log caption { caption-side: top; text-align: left; padding: .8rem 1rem; font-family: var(--mono); font-size: .78rem; font-style: italic; color: var(--soot-2); border-bottom: 1px solid var(--soot); }
.log th, .log td { text-align: left; vertical-align: top; padding: .85rem 1rem; border-bottom: 1px solid var(--line); }
.log thead th { font-family: var(--mono); font-weight: 500; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; background: var(--slip); }
.log tbody th { font-family: var(--display); font-weight: 400; font-size: 1.08rem; width: 24%; }
.log td.wk { font-family: var(--mono); font-size: .82rem; white-space: nowrap; }
.weeks { display: inline-flex; gap: 2px; margin-right: .5rem; vertical-align: middle; }
.weeks i { width: 6px; height: 14px; background: var(--line); border-radius: 1px; }
.weeks i.on { background: var(--heat); }

/* ---------- faults ---------- */

.faults { padding: 4rem 0; background: var(--celadon); }
.fault-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.2rem; }
.fault { background: var(--bisque); padding: 1.2rem 1.2rem 1.3rem; border-radius: 2px 2px 28px 2px; }
.fault__name { font-family: var(--mono); font-size: .76rem; font-style: italic; color: var(--cobalt); display: block; margin-bottom: .5rem; }
.fault p { margin: 0; font-size: .97rem; color: var(--soot-2); }

/* ---------- studio ---------- */

.studio { padding: 4rem 0 4.5rem; }
.studio__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.reading { list-style: none; padding: 0; margin: 0; }
.reading li + li { margin-top: .7rem; }
.reading a { display: block; padding: .9rem 1rem; background: var(--bisque); border: 1px solid var(--line); text-decoration: none; color: var(--soot); }
.reading a:hover { border-color: var(--heat); }
.reading span { display: block; font-family: var(--mono); font-size: .72rem; font-style: italic; color: var(--cobalt); }
.reading strong { font-weight: 600; }

/* ---------- inner pages ---------- */

.page { padding: 3.5rem 0 4.5rem; }
.page article { max-width: 44em; }
.page h1 { font-size: clamp(2.1rem, 4.8vw, 3.3rem); }
.page h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.page p, .page li { margin: 0 0 1rem; }
.page ul { padding-left: 1.2rem; }
.meta { font-family: var(--mono); font-size: .8rem; font-style: italic; color: var(--soot-2); margin-bottom: 2rem; }
.backlink { display: inline-block; margin-top: 2rem; font-family: var(--mono); font-size: .85rem; }
.aside-box { background: var(--bisque); border-left: 4px solid var(--heat); padding: 1rem 1.2rem; margin: 1.6rem 0; }

/* ---------- footer ---------- */

.foot { background: var(--soot); color: #BDB6AC; padding: 2.2rem 0 2.6rem; font-size: .9rem; }
.foot a { color: var(--bisque); }
.foot nav { display: flex; flex-wrap: wrap; gap: 1.2rem; font-family: var(--mono); font-size: .8rem; margin-bottom: 1rem; }
.foot p { margin: 0; max-width: 60em; }

@media (max-width: 860px) {
  .hero__grid, .firing__intro, .studio__grid { grid-template-columns: 1fr; gap: 2rem; }
  .cones { grid-template-columns: 1fr; }
  .record { transform: none; }
  .hide-sm { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .curve .temp { animation: none; }
}
