/* Stonefield company website (stonefield.app). Same rules as the Plushie site (site/assets/site.css): light only,
   system fonts, nothing loaded from other sites, no scripts. Stone and field colours instead of Plushie's peach. */

:root {
  --bg: #F7F5F0;
  --card: #FFFFFF;
  --text: #1C2023;
  --text-2: #5B6168;
  --border: #E4DFD4;
  --accent: #2F5D50;
  --accent-dark: #234A3F;
  --tint: #E6EEE9;
  --radius: 18px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--font); }

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 10; }

.wrap { max-width: 920px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); margin-right: auto; }
.brand img { width: 32px; height: 32px; }
.brand span { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.site-header nav { display: flex; gap: 4px 18px; flex-wrap: wrap; font-size: 15px; font-weight: 600; }
.site-header nav a { text-decoration: none; }

main.wrap { padding-top: 40px; padding-bottom: 56px; }
h1 { font-size: 38px; line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.02em; }
h2 { font-size: 22px; line-height: 1.3; margin: 44px 0 10px; scroll-margin-top: 16px; }
p, ul { margin: 0 0 14px; }
li { margin-bottom: 8px; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.lead { font-size: 19px; color: var(--text-2); max-width: 36em; }
.meta { font-size: 14px; color: var(--text-2); }

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; margin: 20px 0; box-shadow: 0 2px 10px rgba(28, 32, 35, 0.04); }
.card > :last-child, .card > div > :last-child { margin-bottom: 0; }
.card.tint { background: var(--tint); border-color: transparent; }

/* The app cards: three across, one column on phones */
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 36px 0 8px; }
.app { display: flex; flex-direction: column; margin: 0; padding: 22px; }
.app img { width: 64px; height: 64px; border-radius: 15px; margin-bottom: 14px; }
.app img.pixel { image-rendering: pixelated; }
.app h2 { margin: 0 0 6px; font-size: 21px; }
.app p { font-size: 16px; }
.app .meta { margin-top: auto; padding-top: 4px; }
.app-links { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 15px; font-weight: 600; margin: 0; }

.button { display: inline-block; background: var(--accent); color: #fff; font-weight: 600; text-decoration: none; border-radius: 999px; padding: 11px 22px; }
.button:hover { background: var(--accent-dark); }

/* Breadcrumbs and document pages (app details, legal) */
.crumbs { font-size: 14px; color: var(--text-2); margin: 0 0 18px; }
.app-page img { width: 64px; height: 64px; border-radius: 15px; margin-bottom: 14px; }
.app-page img.pixel { image-rendering: pixelated; }
.app-page h1 { margin-bottom: 8px; }
.app-page .app-links { margin-top: 18px; align-items: center; }
.legal h2 { margin-top: 32px; }
.legal .meta { margin-bottom: 24px; }


/* Missing facts, filled in before launch (scripts/check-site.py --release fails while any are left) */
mark.todo { background: #FDE68A; color: #3B2A00; padding: 0 4px; border-radius: 4px; font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0 40px; font-size: 14px; color: var(--text-2); }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 14px; font-weight: 600; }
.site-footer address { font-style: normal; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  h1 { font-size: 30px; }
  .apps { grid-template-columns: 1fr; }
}

@media print {
  .site-header nav, .skip, .site-footer .links { display: none; }
  body { background: #fff; font-size: 11pt; }
  .card { box-shadow: none; break-inside: avoid; }
  a[href^="http"]::after, a[href^="mailto"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
