:root {
  color-scheme: light;
  --paper: #f4f1e9;
  --ink: #20241f;
  --muted: #555b51;
  --line: #ccc9bc;
  font-family: system-ui, "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .24em; }
a:focus-visible { outline: 3px solid #325e44; outline-offset: 4px; }
h1, h2, p { margin: 0; }
.wrap { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
.skip { position: absolute; z-index: 1; left: 1rem; top: 1rem; padding: .75rem; background: white; transform: translateY(-200%); }
.skip:focus { transform: none; }

.site-header { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); }
.brand { font-weight: 800; letter-spacing: -.035em; text-decoration: none; }
.site-header .brand { font-size: 1.24rem; }
.site-header nav, .footer-top nav { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; font-size: .88rem; font-weight: 650; }
.site-header nav a, .site-footer a { text-decoration: none; }
.site-header nav a:hover, .site-footer a:hover { text-decoration: underline; }

.intro { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 1.2rem 2rem; padding-block: 3.2rem 2.5rem; }
.eyebrow { font-size: .78rem; font-weight: 750; letter-spacing: .08em; }
.intro-label { grid-column: 1 / -1; color: var(--muted); display: flex; gap: .6rem; align-items: center; }
.intro-label span { width: .5rem; height: .5rem; border-radius: 50%; background: #a84d38; }
.intro h1 { font-size: clamp(2.15rem, 5.4vw, 4.7rem); line-height: 1.14; letter-spacing: -.075em; }
.intro-copy { color: var(--muted); font-size: clamp(.92rem, 1.6vw, 1.1rem); line-height: 1.7; padding-bottom: .3rem; }

.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.product { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid #c4c1b3; border-radius: 15px; scroll-margin: 1rem; }
.figure { background: #fbf7e9; }
.saml { background: #f0f3e9; }
.product-visual { aspect-ratio: 7 / 4; }
.figure-visual { position: relative; background: #f3f1ea; }
.figure-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.product-copy { display: flex; flex-direction: column; flex: 1; align-items: flex-start; padding: clamp(1.25rem, 3.1vw, 2rem); }
.figure .eyebrow { color: #874831; }
.saml .eyebrow { color: #38634a; }
.product h2 { font-size: clamp(1.95rem, 4.1vw, 3.25rem); letter-spacing: -.06em; line-height: 1.2; margin-top: .58rem; }
.pitch { font-size: clamp(1rem, 1.7vw, 1.17rem); font-weight: 680; line-height: 1.55; margin-top: .95rem; }
.detail { color: var(--muted); line-height: 1.78; font-size: .94rem; margin-top: .45rem; margin-bottom: 1.4rem; }
.actions { margin-top: auto; display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.1rem; }
.button { display: inline-flex; align-items: center; gap: .9rem; padding: .69rem .95rem; border-radius: 7px; font-size: .89rem; font-weight: 730; text-decoration: none; }
.button-figure { background: #823e2d; color: white; }
.button-figure:hover { background: #662c1e; }
.button-saml { background: #244b37; color: white; }
.button-saml:hover { background: #173626; }
.secondary { font-size: .86rem; font-weight: 640; }

.terminal-visual { display: grid; place-items: center; background: radial-gradient(ellipse at 20% 10%, #3d5542, #192b22 75%); padding: 8%; }
.terminal { width: 100%; border: 1px solid #748477; border-radius: 10px; background: #111b15; color: #eef3e7; overflow: hidden; box-shadow: 0 12px 30px #10171066; }
.terminal-bar { display: flex; gap: .8rem; align-items: center; padding: .65rem .9rem; color: #d0d9cd; background: #26382d; font: .75rem ui-monospace, Consolas, monospace; }
.terminal-dots { display: flex; gap: 5px; }
.terminal-dots i { width: 7px; height: 7px; border-radius: 50%; background: #e69f83; }
.terminal-dots i:nth-child(2) { background: #e4c97d; }
.terminal-dots i:nth-child(3) { background: #a5c692; }
.terminal-code { padding: .95rem; font-size: clamp(.72rem, 1.2vw, .98rem); line-height: 1.7; overflow-wrap: anywhere; }
.terminal-code span { color: #b8da9f; }
.terminal-code code { font-family: ui-monospace, Consolas, monospace; }
.terminal-caption { color: #c6d1c6; font-size: .78rem; margin-block: .4rem .65rem; }

.site-footer { border-top: 1px solid var(--line); margin-top: 3rem; padding-block: 1.4rem 1.9rem; }
.footer-top, .footer-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem 1.4rem; }
.footer-meta { margin-top: .9rem; color: var(--muted); font-size: .78rem; }
.footer-meta nav { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-left: auto; }

.policy { max-width: 760px; padding-top: 2.4rem; line-height: 1.75; overflow-wrap: anywhere; }
.policy h1 { font-size: clamp(1.85rem, 4vw, 3rem); letter-spacing: -.045em; }
.policy h2 { font-size: 1.25rem; margin-top: 1.8rem; }
.policy p { margin-top: .65rem; }
.policy .eyebrow, .policy-date { color: var(--muted); }
.policy .project-links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }

@media (max-width: 880px) {
  .intro { grid-template-columns: 1fr; }
  .intro-copy br { display: none; }
  .footer-meta nav { margin-left: 0; }
}

@media (max-width: 680px) {
  .wrap { width: calc(100% - 36px); }
  .intro { padding-block: 2.2rem 1.6rem; gap: .8rem; }
  .products { grid-template-columns: 1fr; gap: 16px; }
  .site-header { min-height: 64px; }
  .site-header nav { gap: .45rem .85rem; justify-content: end; }
  .site-header .brand { font-size: 1.05rem; }
  .site-footer { margin-top: 2rem; }
  .footer-meta { align-items: start; }
}
