/* TerraCraft Limited — one stylesheet, system fonts only, no third-party requests. */
:root {
  --paper: #F5F7F4;
  --surface: #FFFFFF;
  --ink: #15302D;
  --muted: #55706B;
  --line: #D8E3DF;
  --deep: #1D5C57;   /* verdigris, the icon's dark piece */
  --light: #7CC8B4;  /* patina, the icon's light piece */
  --link: #1D5C57;
  --serif: ui-serif, "New York", "Iowan Old Style", Charter, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0E1A19; --surface: #142422; --ink: #E4EEEB; --muted: #93ABA6;
    --line: #24403C; --link: #7CC8B4; --deep: #7CC8B4; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0E1A19; --surface: #142422; --ink: #E4EEEB; --muted: #93ABA6;
  --line: #24403C; --link: #7CC8B4; --deep: #7CC8B4; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--light); outline-offset: 3px; border-radius: 3px; }
img { max-width: 100%; display: block; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; flex-wrap: wrap; }
.brand { font: 600 18px/1 var(--serif); letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.nav { display: flex; gap: 20px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(34px, 7vw, 52px); margin: 0 0 16px; }
h2 { font-size: 26px; margin: 48px 0 12px; }
h3 { font-size: 19px; margin: 28px 0 6px; }
p, ul, ol { margin: 0 0 16px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }
.lede { font-size: 20px; line-height: 1.5; color: var(--muted); max-width: 34em; }
.eyebrow { font: 600 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.meta { font-size: 15px; color: var(--muted); }

main { padding-block: 56px 72px; }

/* A rule with a small dovetail notch, the studio's one ornament. */
.joint { height: 14px; margin: 56px 0; background:
  linear-gradient(var(--line), var(--line)) left 50% / calc(50% - 22px) 1px no-repeat,
  linear-gradient(var(--line), var(--line)) right 50% / calc(50% - 22px) 1px no-repeat; position: relative; }
.joint::after { content: ""; position: absolute; left: 50%; top: 0; width: 30px; height: 14px; transform: translateX(-50%);
  background: var(--light); clip-path: polygon(25% 0, 75% 0, 100% 100%, 0 100%); }

/* Product card on the studio page */
.product { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 22px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.product img { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(21, 48, 45, .10); background: #E4ECE9; }
.product h3 { margin-top: 0; font-size: 24px; }
.product p:last-child { margin-bottom: 0; }
@media (max-width: 480px) { .product { grid-template-columns: minmax(0, 1fr); } }

/* Product hero */
.hero { display: grid; gap: 28px; justify-items: start; }
.hero .app-icon { width: 128px; height: 128px; border-radius: 29px; background: #E4ECE9; box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(21, 48, 45, .14); }
.badge { display: inline-block; font: 600 14px/1 var(--sans); padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: var(--surface); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; margin: 36px 0 0; padding: 0; list-style: none; }
.features li { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin: 0; }
.features strong { display: block; font: 600 17px/1.3 var(--serif); margin-bottom: 4px; }
.features span { font-size: 15px; color: var(--muted); }
.features .icon { display: block; width: 26px; height: 26px; margin-bottom: 10px; fill: none; stroke: var(--deep); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* FAQ */
details { border-top: 1px solid var(--line); padding: 14px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; color: var(--ink); }

.contact { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--deep); border-radius: 12px; padding: 18px 20px; }
.contact p:last-child { margin: 0; }

/* Legal pages */
.legal h2 { font-size: 22px; margin-top: 40px; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.site-foot .wrap { padding-block: 24px 32px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.site-foot a { color: var(--muted); }
