:root {
  --bg-canvas: #f3e9d8;
  --bg-surface: #fffaf1;
  --bg-surface-hover: #efe2cb;
  --text-primary: #262626;
  --text-muted: #5c5346;
  --accent-primary: #a3482d;
  --accent-secondary: #7a321d;
  --border-subtle: rgba(38, 38, 38, 0.18);
  --border-strong: #262626;
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-hard: 4px 4px 0px #262626;
  --shadow-elevation: 0 12px 24px -6px rgba(38, 38, 38, 0.15);
}

*, *::before, *::after {
  box-sizing: border-box;
  border-radius: 0px !important;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  overflow-wrap: anywhere;
  hyphens: auto;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: contrast(1.08) brightness(0.95);
  border: 1px solid var(--border-strong);
}

.img-banner { aspect-ratio: 16 / 9; width: 100%; }
.img-grid { aspect-ratio: 4 / 3; width: 100%; }
.img-square { aspect-ratio: 1 / 1; width: 100%; }

a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--text-primary);
}

.tagline-bar {
  background-color: var(--text-primary);
  color: var(--bg-surface);
  font-size: 0.85rem;
  padding: 6px 20px;
  letter-spacing: 0.03em;
}

.tagline-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.site-header {
  position: relative;
  background-color: var(--bg-surface);
  border-bottom: 2px solid var(--border-strong);
  padding: 16px 20px;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  background-color: var(--accent-primary);
  border: 2px solid var(--border-strong);
  display: inline-block;
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border: 2px solid var(--bg-surface);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

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

.menu-toggle {
  display: none;
  background: var(--bg-canvas);
  border: 2px solid var(--border-strong);
  color: var(--text-primary);
  font-size: 1.4rem;
  line-height: 1;
  padding: 6px 12px;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--border-strong);
}

.mobile-dropdown {
  display: none;
  background-color: var(--bg-surface);
  border-bottom: 2px solid var(--border-strong);
  padding: 16px 20px;
}

.mobile-dropdown.is-open {
  display: block;
}

.mobile-dropdown nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-dropdown a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.prose-width {
  max-width: 70ch;
  margin: 0 auto;
}

h1, h2, h3, h4 {
  line-height: 1.25;
  margin-top: 0;
  color: var(--text-primary);
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 0.85rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.6rem; }

.btn {
  display: inline-block;
  background-color: var(--accent-primary);
  color: var(--bg-surface);
  font-weight: 700;
  text-decoration: none;
  padding: 12px 22px;
  border: 2px solid var(--border-strong);
  box-shadow: var(--shadow-hard);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}

.btn:hover {
  color: var(--bg-surface);
  background-color: var(--accent-secondary);
  transform: translate(4px, 4px);
  box-shadow: 0px 0px 0px var(--border-strong);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: var(--bg-surface-hover);
  color: var(--text-primary);
}

.hero-workshop {
  position: relative;
  padding: 48px 0;
  border-bottom: 2px solid var(--border-strong);
}

.hero-frame {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0;
  border: 2px solid var(--border-strong);
  background-color: var(--bg-surface);
}

.hero-media {
  position: relative;
  min-height: 420px;
}

.hero-media img {
  width: 100%;
  height: 100%;
  border: none;
}

.hero-fact-panel {
  background-color: var(--bg-surface);
  padding: 36px;
  border-left: 2px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.fact-grid {
  border-top: 2px solid var(--border-strong);
  margin: 20px 0;
}

.fact-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.95rem;
}

.fact-label {
  font-weight: 700;
  color: var(--text-muted);
}

.split-section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.split-grid.reverse .split-text {
  order: 2;
}

.split-grid.reverse .split-media {
  order: 1;
}

.terracotta-band {
  background-color: var(--accent-primary);
  color: var(--bg-surface);
  padding: 48px 0;
  border-top: 2px solid var(--border-strong);
  border-bottom: 2px solid var(--border-strong);
}

.terracotta-band h2,
.terracotta-band h3,
.terracotta-band p,
.terracotta-band a {
  color: var(--bg-surface);
}

.list-rows {
  border-top: 2px solid var(--border-strong);
  margin-top: 24px;
}

.list-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.row-icon {
  width: 36px;
  height: 36px;
  background-color: var(--bg-surface);
  border: 2px solid var(--border-strong);
  color: var(--accent-primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.terracotta-band .list-row {
  border-bottom-color: rgba(255, 250, 241, 0.28);
}

.terracotta-band .row-icon {
  background-color: var(--text-primary);
  color: var(--bg-surface);
}

.checklist-box {
  background-color: var(--bg-surface);
  border: 2px solid var(--border-strong);
  padding: 28px;
  margin: 24px 0;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.check-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 5px;
  accent-color: var(--accent-primary);
}

.table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border: 2px solid var(--border-strong);
  background-color: var(--bg-surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 540px;
}

th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

th {
  background-color: var(--text-primary);
  color: var(--bg-surface);
  font-weight: 700;
}

.before-after-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}

.stage-caption {
  background-color: var(--text-primary);
  color: var(--bg-surface);
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 700;
}

.work-order-sheet {
  background-color: var(--bg-surface);
  border: 2px solid var(--border-strong);
  padding: 32px;
  box-shadow: var(--shadow-hard);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--border-strong);
  background-color: var(--bg-canvas);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-primary);
}

.work-output {
  background-color: var(--bg-canvas);
  border: 2px solid var(--border-strong);
  padding: 16px;
  font-family: monospace;
  white-space: pre-wrap;
  min-height: 140px;
  margin: 16px 0;
}

.site-footer {
  background-color: var(--text-primary);
  color: var(--bg-surface);
  padding: 56px 20px 36px;
  border-top: 4px solid var(--accent-primary);
  margin-top: 64px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 250, 241, 0.2);
}

.site-footer a {
  color: var(--bg-surface);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 24px auto 0;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.reveal-item {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s var(--ease-kinetic), transform 0.6s var(--ease-kinetic);
}

.js-enabled .reveal-item {
  opacity: 0;
  transform: translateY(16px);
}

.js-enabled .reveal-item.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .hero-frame,
  .split-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .split-grid.reverse .split-text,
  .split-grid.reverse .split-media {
    order: initial;
  }
  .hero-fact-panel {
    border-left: none;
    border-top: 2px solid var(--border-strong);
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .menu-toggle {
    display: inline-block;
  }
  .before-after-pair {
    grid-template-columns: 1fr;
  }
  .list-row {
    grid-template-columns: 36px 1fr;
  }
  .list-row > :nth-child(3) {
    grid-column: 2;
  }
}

@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
