/* Self-hosted editorial serif: Fraunces (OFL 1.1), variable 400-700, latin + vietnamese
   subsets. Family name is site-prefixed ("Sunhouse Kiln") so @font-face cannot leak. */
@font-face{font-family:"Sunhouse Kiln";font-style:normal;font-weight:400 700;font-display:swap;src:url("./font-fraunces-latin.woff2") format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:"Sunhouse Kiln";font-style:normal;font-weight:400 700;font-display:swap;src:url("./font-fraunces-vietnamese.woff2") format("woff2");unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB}
/* ============================================================
   Sunhouse concept — scoped under [data-site="sunhouse"]
   Direction 2026-2030: Clay & Copper Kitchen Editorial
   Fingerprint: issue masthead nav · clay magazine cover ·
   warm serif editorial · magazine asymmetric index ·
   double fold breaks · kiln warm photography · brass seal fold
   line · paper calm
   ============================================================ */

[data-site="sunhouse"] {
  --sh-canvas: #e9dfd2;
  --sh-surface: #f5efe5;
  --sh-text: #2e2418;
  --sh-muted: #6e5f4b;
  --sh-clay: #8a4b2a;
  --sh-clay-deep: #6b3720;
  --sh-brass: #9c7a2e;
  --sh-brass-soft: #d8c489;
  --sh-charcoal: #3a3025;
  --sh-border: #d5c8b2;
  --sh-serif: "Sunhouse Kiln", Georgia, "Times New Roman", "Noto Serif", serif;
  --sh-container: 74rem;
  --sh-t-fast: 140ms;
  --sh-t-base: 240ms;

  font-family: system-ui, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(rgba(107, 55, 32, 0.05) 1px, transparent 1px),
    var(--sh-canvas);
  background-size: 22px 22px, auto;
  color: var(--sh-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

[data-site="sunhouse"] *,
[data-site="sunhouse"] *::before,
[data-site="sunhouse"] *::after { box-sizing: border-box; }

[data-site="sunhouse"] h1,
[data-site="sunhouse"] h2,
[data-site="sunhouse"] h3 {
  font-family: var(--sh-serif);
  font-weight: 700;
  line-height: 1.14;
  margin: 0 0 0.6em;
}

[data-site="sunhouse"] p { margin: 0 0 1em; }
[data-site="sunhouse"] ul, [data-site="sunhouse"] ol { margin: 0; padding: 0; list-style: none; }
[data-site="sunhouse"] a { color: var(--sh-clay-deep); }
[data-site="sunhouse"] svg { max-width: 100%; }

[data-site="sunhouse"] :focus-visible {
  outline: 3px solid var(--sh-clay);
  outline-offset: 3px;
  border-radius: 6px;
}

[data-site="sunhouse"] .visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

[data-site="sunhouse"] .skip {
  position: absolute;
  left: 1rem; top: -4rem;
  background: var(--sh-clay);
  color: #fff;
  font-weight: 700;
  padding: 0.7rem 1.2rem;
  z-index: 100;
  text-decoration: none;
  transition: top var(--sh-t-fast) ease;
}
[data-site="sunhouse"] .skip:focus { top: 1rem; }

[data-site="sunhouse"] .container {
  width: min(100% - 2.5rem, var(--sh-container));
  margin-inline: auto;
}

/* ---------- concept strip ---------- */
[data-site="sunhouse"] .concept-strip {
  background: var(--sh-charcoal);
  color: #d9cfbe;
  font-size: 0.8rem;
  padding: 0.55rem 1rem;
  text-align: center;
}
[data-site="sunhouse"] .concept-tag {
  display: inline-block;
  background: var(--sh-brass-soft);
  color: #4a3712;
  font-weight: 800;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  padding: 0.12rem 0.6rem;
  margin-right: 0.5rem;
  vertical-align: 1px;
}

/* ---------- header masthead ---------- */
[data-site="sunhouse"] .site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 239, 229, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 3px double var(--sh-border);
}
[data-site="sunhouse"] .masthead {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--sh-muted);
  text-transform: uppercase;
  flex-wrap: wrap;
}
[data-site="sunhouse"] .mast-center { font-weight: 700; color: var(--sh-clay-deep); }
[data-site="sunhouse"] .header-inner {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 0.65rem 0;
}
[data-site="sunhouse"] .brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--sh-clay-deep);
}
[data-site="sunhouse"] .brand-glyph {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  background: var(--sh-clay);
  border-radius: 12px;
  color: var(--sh-brass-soft);
}
[data-site="sunhouse"] .brand-text { display: flex; flex-direction: column; line-height: 1.15; }
[data-site="sunhouse"] .brand-name {
  font-family: var(--sh-serif);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
[data-site="sunhouse"] .brand-sub {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--sh-brass);
  text-transform: uppercase;
}
[data-site="sunhouse"] .main-nav { margin-left: auto; }
[data-site="sunhouse"] .main-nav ul { display: flex; gap: 0.15rem; flex-wrap: wrap; }
[data-site="sunhouse"] .main-nav a {
  display: block;
  text-decoration: none;
  color: var(--sh-text);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.55rem 0.95rem;
  border-radius: 8px;
  transition: background var(--sh-t-fast) ease, color var(--sh-t-fast) ease;
}
[data-site="sunhouse"] .main-nav a:hover { background: var(--sh-clay); color: #fff; }
[data-site="sunhouse"] .header-cta {
  text-decoration: none;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--sh-charcoal);
  background: var(--sh-brass-soft);
  padding: 0.6rem 1.05rem;
  border-radius: 8px;
  white-space: nowrap;
  transition: background var(--sh-t-fast) ease;
}
[data-site="sunhouse"] .header-cta:hover { background: var(--sh-brass); color: #fff; }

[data-site="sunhouse"] .nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
  margin-left: auto;
}
[data-site="sunhouse"] .nav-toggle span {
  width: 24px; height: 3px;
  background: var(--sh-clay-deep);
}

/* ---------- hero cover ---------- */
[data-site="sunhouse"] .hero { padding: 3.5rem 0; }
[data-site="sunhouse"] .cover {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}
[data-site="sunhouse"] .kicker {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--sh-brass);
  margin: 0 0 1.1rem;
  text-transform: uppercase;
}
[data-site="sunhouse"] .hero h1 {
  font-size: clamp(2.3rem, 5vw, 4rem);
  margin-bottom: 0.4em;
  color: var(--sh-charcoal);
}
[data-site="sunhouse"] .hero h1 em { font-style: italic; color: var(--sh-clay); }
[data-site="sunhouse"] .lede { color: var(--sh-muted); max-width: 40rem; }
[data-site="sunhouse"] .hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.6rem; }

[data-site="sunhouse"] .btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 800;
  border-radius: 8px;
  padding: 0.85rem 1.55rem;
  border: 2px solid transparent;
  transition: transform var(--sh-t-fast) ease, background var(--sh-t-fast) ease, border-color var(--sh-t-fast) ease;
}
[data-site="sunhouse"] .btn-clay { background: var(--sh-clay); color: #fff; }
[data-site="sunhouse"] .btn-clay:hover { background: var(--sh-clay-deep); transform: translateY(-2px); }
[data-site="sunhouse"] .btn-outline { color: var(--sh-clay-deep); border-color: var(--sh-clay-deep); }
[data-site="sunhouse"] .btn-outline:hover { border-color: var(--sh-brass); color: var(--sh-brass); }
[data-site="sunhouse"] .btn-lg { padding: 1rem 1.9rem; font-size: 1rem; }

/* ---------- hero cover plate: real photograph, brass seal stamped on it ---------- */
[data-site="sunhouse"] .cover-plate {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3.2;
  border-radius: 16px;
  overflow: hidden;
  background: var(--sh-charcoal);
  box-shadow: 0 26px 60px -34px rgba(46, 36, 24, 0.7);
}
[data-site="sunhouse"] .cover-plate img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.02) contrast(1.05);
}
[data-site="sunhouse"] .cover-plate .plate-credit {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  margin: 0;
  padding: 1.6rem 1.15rem 0.7rem;
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: #f3ead9;
  background: linear-gradient(transparent, rgba(46, 36, 24, 0.88));
}
[data-site="sunhouse"] .cover-seal {
  position: absolute;
  z-index: 2;
  top: 1rem; right: 1rem;
  width: 4.6rem; height: 4.6rem;
  display: grid;
  place-content: center;
  text-align: center;
  border-radius: 50%;
  font-family: var(--sh-serif);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  line-height: 1.1;
  color: #4a3712;
  background: radial-gradient(circle at 34% 28%, #ece0b6, #d8c489 62%, #b99f5c);
  border: 2px solid #9c7a2e;
  box-shadow: 0 6px 16px -8px rgba(46, 36, 24, 0.8), inset 0 0 0 2px #9c7a2e33;
  transform: rotate(-7deg);
}
[data-site="sunhouse"] .cover-seal b {
  display: block;
  font-size: 1.24rem;
  letter-spacing: 0.02em;
}

/* ---------- photo essay: three kitchen frames, stepped baseline ---------- */
[data-site="sunhouse"] .kitchen { background: var(--sh-surface); }
[data-site="sunhouse"] .kitchen-plates {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: end;
}
[data-site="sunhouse"] .kplate {
  position: relative;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--sh-charcoal);
}
[data-site="sunhouse"] .kplate img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.99) contrast(1.06);
}
[data-site="sunhouse"] .kplate-market { aspect-ratio: 3 / 4; }
[data-site="sunhouse"] .kplate-oven { aspect-ratio: 1 / 1; }
[data-site="sunhouse"] .kplate-pho { aspect-ratio: 4 / 3; }
[data-site="sunhouse"] .kplate figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 2.4rem 1.05rem 0.85rem;
  color: #f6efe1;
  background: linear-gradient(transparent, rgba(46, 36, 24, 0.9));
}
[data-site="sunhouse"] .kplate figcaption strong {
  font-family: var(--sh-serif);
  font-size: 1.16rem;
  font-weight: 600;
}
[data-site="sunhouse"] .k-no {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #e2cfa0;
}
[data-site="sunhouse"] .kplate .plate-credit { font-size: 0.63rem; color: #cfc2a8; }

/* ---------- sections ---------- */
[data-site="sunhouse"] .section { padding: 4rem 0; }
[data-site="sunhouse"] .section-head { max-width: 44rem; margin-bottom: 2.25rem; }
[data-site="sunhouse"] .section-head h2 { font-size: clamp(1.85rem, 3.5vw, 2.6rem); }
[data-site="sunhouse"] .section-note { color: var(--sh-muted); }

/* magazine index */
[data-site="sunhouse"] .mag-index {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 2.5rem;
  max-width: 58rem;
}
[data-site="sunhouse"] .entry {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.1rem;
  align-items: start;
  padding: 1.05rem 0;
  border-bottom: 3px double var(--sh-border);
}
[data-site="sunhouse"] .entry-no {
  font-family: var(--sh-serif);
  font-style: italic;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--sh-brass);
}
[data-site="sunhouse"] .entry-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.2em;
}
[data-site="sunhouse"] .entry-body p {
  margin: 0;
  color: var(--sh-muted);
  font-size: 0.93rem;
}

/* numbers / seals */
[data-site="sunhouse"] .numbers { background: var(--sh-surface); }
[data-site="sunhouse"] .seal-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}
[data-site="sunhouse"] .seal-card {
  background: var(--sh-canvas);
  border: 1px solid var(--sh-border);
  border-radius: 12px;
  padding: 1.5rem 1.35rem;
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  text-align: center;
}
[data-site="sunhouse"] .seal-value {
  font-family: var(--sh-serif);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--sh-clay-deep);
}
[data-site="sunhouse"] .seal-label { font-size: 0.85rem; color: var(--sh-muted); }

/* cta with fold */
[data-site="sunhouse"] .cta { padding: 4rem 0; text-align: center; }
[data-site="sunhouse"] .fold {
  background-image: linear-gradient(90deg, var(--sh-brass) 55%, transparent 45%);
  background-size: 16px 3px;
  background-repeat: repeat-x;
  background-position: 0 100%;
  padding-bottom: 0.4rem;
  display: inline-block;
}
[data-site="sunhouse"] .cta-inner h2 { font-size: clamp(1.85rem, 3.5vw, 2.5rem); }

/* footer */
[data-site="sunhouse"] .site-footer {
  background: #35291c;
  color: #cfc0a8;
  padding: 3.25rem 0 2rem;
}
[data-site="sunhouse"] .footer-brand { display: flex; align-items: baseline; gap: 0.9rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
[data-site="sunhouse"] .f-name {
  font-family: var(--sh-serif);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
[data-site="sunhouse"] .f-sub { font-size: 0.8rem; color: var(--sh-brass-soft); }
[data-site="sunhouse"] .footer-nav ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-bottom: 1.6rem; }
[data-site="sunhouse"] .footer-nav a { color: #eee5d5; text-decoration: none; font-size: 0.9rem; font-weight: 600; }
[data-site="sunhouse"] .footer-nav a:hover { color: var(--sh-brass-soft); }
[data-site="sunhouse"] .disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 1.4rem;
  font-size: 0.82rem;
  color: #b3a48c;
  max-width: 60rem;
}
[data-site="sunhouse"] .colophon { font-size: 0.75rem; color: #a89a80; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  [data-site="sunhouse"] .cover { grid-template-columns: 1fr; }
  [data-site="sunhouse"] .mag-index { grid-template-columns: 1fr; }
  [data-site="sunhouse"] .seal-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  [data-site="sunhouse"] .nav-toggle { display: flex; }
  [data-site="sunhouse"] .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--sh-surface);
    border-bottom: 3px double var(--sh-border);
    padding: 0.75rem 1.25rem 1.25rem;
  }
  [data-site="sunhouse"] .main-nav.is-open { display: block; }
  [data-site="sunhouse"] .main-nav ul { flex-direction: column; gap: 0.25rem; }
  [data-site="sunhouse"] .header-cta { display: none; }
}

@media (max-width: 520px) {
  [data-site="sunhouse"] .seal-row { grid-template-columns: 1fr; }
  [data-site="sunhouse"] .section { padding: 3rem 0; }
  [data-site="sunhouse"] .kitchen-plates { grid-template-columns: 1fr; }
  [data-site="sunhouse"] .kplate-market,
  [data-site="sunhouse"] .kplate-oven,
  [data-site="sunhouse"] .kplate-pho { aspect-ratio: 4 / 3; }
  [data-site="sunhouse"] .cover-seal { width: 3.7rem; height: 3.7rem; font-size: 0.6rem; }
  [data-site="sunhouse"] .cover-seal b { font-size: 1rem; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  [data-site="sunhouse"] * {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- polish: motion layer 2 ---------- */
[data-site="sunhouse"] .seal-card .seal svg {
  animation: sh-coin 18s linear infinite;
}
@keyframes sh-coin {
  to { transform: rotate(360deg); }
}
[data-site="sunhouse"] .entry:hover .entry-no {
  display: inline-block;
  animation: sh-flip 0.55s ease;
  transform-origin: 50% 50%;
}
@keyframes sh-flip {
  50% { transform: rotateX(70deg) translateY(-3px); }
}
