/* Whetstone Studios. Colours are Hone's design tokens (hone-ios spec §6.3). */
:root {
  --bg-deep: #0A0A0C;
  --bg-raised: #16161A;
  --bg-card: #1E1E24;
  --text-primary: #F5F3EF;
  --text-secondary: #9A968E;
  --stroke-dim: #5C5952; /* non-text only */
  --accent-ember: #FF8A3D;
  --accent-edge: #E8DCC8;
  --on-ember: #0A0A0C;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --measure: 38rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg-deep);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 1.0625rem; /* 17px body */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

main { flex: 1; }

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

.skip {
  position: absolute;
  left: -999rem;
  top: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--accent-ember);
  color: var(--on-ember);
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
}
.skip:focus { left: 0.5rem; z-index: 10; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--bg-card);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.wordmark {
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark:hover { color: var(--accent-edge); }
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  font-size: 0.9375rem;
}
.site-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.25rem 0;
}
.site-nav a:hover { color: var(--text-primary); }
.site-nav a[aria-current="page"] {
  color: var(--text-primary);
  box-shadow: 0 1px 0 var(--accent-ember);
}

/* Type */
.eyebrow {
  margin: 0 0 1.25rem;
  color: var(--accent-ember);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.display {
  font-size: clamp(2.5rem, 7.5vw, 4.5rem); /* up to 72px display */
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 14em;
}

.title { font-size: clamp(2rem, 5vw, 2.75rem); }

.lead {
  margin: 1.5rem 0 0;
  max-width: var(--measure);
  color: var(--text-secondary);
  font-size: clamp(1.125rem, 2.2vw, 1.3125rem);
  line-height: 1.5;
}
.lead strong, .lead em { color: var(--text-primary); font-weight: inherit; font-style: normal; }

/* Sections */
.hero { padding: clamp(4rem, 12vw, 8.5rem) 0 clamp(3.5rem, 9vw, 6.5rem); }

.feature {
  border-top: 1px solid var(--bg-card);
  padding: clamp(3.5rem, 9vw, 6.5rem) 0;
}
.feature-name {
  font-size: clamp(4.5rem, 17vw, 10rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
}
.feature-name span { color: var(--accent-ember); }
.feature .lead { color: var(--text-primary); max-width: 32rem; }
.feature .sub {
  margin: 1rem 0 0;
  max-width: 32rem;
  color: var(--text-secondary);
}

.facts {
  list-style: none;
  margin: clamp(2.5rem, 6vw, 4rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--bg-card);
  border: 1px solid var(--bg-card);
  border-radius: 14px;
  overflow: hidden;
}
.facts li {
  background: var(--bg-raised);
  padding: 1.75rem 1.5rem 2rem;
}
.facts .n {
  display: block;
  margin-bottom: 1.25rem;
  color: var(--accent-ember);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}
.facts h3 {
  font-size: 1.1875rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.facts p {
  margin: 0.625rem 0 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}
.links a {
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 1px 0 var(--accent-ember);
  padding-bottom: 0.15em;
}
.links a:hover { color: var(--accent-ember); }

/* Document pages */
.page { padding: clamp(3rem, 9vw, 6rem) 0 clamp(4rem, 10vw, 7rem); }
.page-head { margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.meta {
  margin: 1.25rem 0 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.prose { max-width: var(--measure); }
.prose h2 {
  margin: 3rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--bg-card);
  font-size: 1.375rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin: 1rem 0 0; color: var(--text-secondary); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-top: 0.5rem; }
.prose li::marker { color: var(--stroke-dim); }
.prose strong { color: var(--text-primary); font-weight: 600; }

.summary {
  max-width: var(--measure);
  margin: 0 0 3rem;
  padding: 1.5rem 1.5rem 1.625rem;
  background: var(--bg-raised);
  border: 1px solid var(--bg-card);
  border-left: 2px solid var(--accent-ember);
  border-radius: 0 12px 12px 0;
}
.summary ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.summary li { margin-top: 0.5rem; color: var(--text-primary); }
.summary li:first-child { margin-top: 0; }

.address {
  display: inline-block;
  margin-top: 1.75rem;
  color: var(--text-primary);
  font-size: clamp(1.25rem, 4.6vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 2px 0 var(--accent-ember);
  padding-bottom: 0.1em;
  overflow-wrap: anywhere;
}
.address:hover { color: var(--accent-ember); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.875rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-top: 2rem;
  padding-bottom: 2.5rem;
}
.site-footer p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.site-footer a { color: var(--text-secondary); text-decoration: none; }
.site-footer a:hover { color: var(--text-primary); }

@media (min-width: 62rem) {
  .facts { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 34rem) {
  .facts { grid-template-columns: 1fr; }
}
