/* Rafter Sites studio page. White page, near-black ink, one ballpoint blue used only for prices, ticks and links.
   The estimate is the only box: canary carbon-copy paper with ruled lines and a double rule above the total.
   Font: Archivo, wide and heavy for headings, normal width for text. No shadows. */
:root {
  --ink: #17191c; --muted: #575c63; --line: #e2dfd8; --paper: #ffffff;
  --pen: #1e3a8a; --canary: #fbf2c9; --canary-line: #e3d48f;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 17px/1.6 Archivo, system-ui, sans-serif; font-stretch: 100%; color: var(--ink); background: var(--paper); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, .ag-mark, .ag-est-title { font-stretch: 118%; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 9.5vw, 5.6rem); line-height: .98; margin: 0 0 24px; max-width: 14ch; }
h2 { font-size: clamp(1.75rem, 5.5vw, 2.9rem); line-height: 1.04; margin: 0 0 16px; }
h3 { font-size: 1.2rem; line-height: 1.2; margin: 0 0 6px; }
p { margin: 0 0 1em; }
a:focus-visible { outline: 3px solid var(--pen); outline-offset: 3px; }

.ag-header { display: flex; align-items: center; gap: 28px; padding: 18px 16px; max-width: 1200px; margin: 0 auto; border-bottom: 2px solid var(--ink); }
.ag-mark { font-size: 1.25rem; text-decoration: none; }
.ag-header nav { display: none; gap: 26px; }
.ag-header nav a { text-decoration: none; color: var(--muted); font-weight: 500; }
.ag-header nav a:hover { color: var(--ink); }
.ag-header-mail { margin-left: auto; font-weight: 700; color: var(--pen); text-decoration-thickness: 2px; text-underline-offset: 4px; }

.ag-hero { max-width: 1200px; margin: 0 auto; padding: 56px 16px 40px; }
.ag-lede { font-size: clamp(1.15rem, 2.6vw, 1.4rem); line-height: 1.5; max-width: 40ch; color: #33373d; }
.ag-actions { display: grid; gap: 10px; margin-top: 30px; }
.ag-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; background: var(--ink); color: #fff; font-weight: 700; text-decoration: none; border: 2px solid var(--ink); border-radius: 4px; }
.ag-btn-line { background: transparent; color: var(--ink); }
.ag-btn:hover { background: #33373d; border-color: #33373d; color: #fff; }
.ag-hero-shots { display: none; }
@media (min-width: 960px) {
  .ag-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start; padding-bottom: 0; }
  .ag-hero-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
  .ag-hero-shots img { width: 100%; aspect-ratio: 1 / 1.55; object-fit: cover; object-position: top; border: 1px solid #cfcbc2; border-bottom: 0; border-radius: 16px 16px 0 0; }
  .ag-hero-shots a + a { margin-top: 64px; }
}

.ag-section { max-width: 1200px; margin: 0 auto; padding: 64px 16px; border-top: 1px solid var(--line); }
.ag-intro { max-width: 46rem; margin-bottom: 36px; }
.ag-intro p { color: var(--muted); font-size: 1.08rem; }

/* Samples: real screenshots, scroll sideways on phones, four across on wide screens. */
.ag-samples { list-style: none; margin: 0 -16px; padding: 0 16px 8px; display: grid; grid-auto-flow: column; grid-auto-columns: 68%; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.ag-samples li { scroll-snap-align: start; }
.ag-samples a { display: block; text-decoration: none; }
.ag-samples img { width: 100%; aspect-ratio: 1 / 2; object-fit: cover; object-position: top; border: 1px solid #cfcbc2; border-radius: 16px; margin-bottom: 14px; }
.ag-samples a:hover img { border-color: var(--ink); }
.ag-samples strong { font-size: 1.15rem; font-stretch: 112%; font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--line); }
.ag-samples a:hover strong { text-decoration-color: var(--ink); }
.ag-samples p { color: var(--muted); font-size: .96rem; margin: 6px 0 0; }

/* The estimate. */
.ag-estimate { max-width: 880px; background: var(--canary); border: 1px solid var(--canary-line); border-radius: 2px; padding: 24px 16px 20px; }
.ag-est-top { display: grid; gap: 14px; margin-bottom: 18px; }
.ag-est-title { font-size: 1.9rem; line-height: 1; margin: 0; }
.ag-est-top dl { margin: 0; display: grid; gap: 6px; }
.ag-est-top dl div { display: flex; gap: 10px; align-items: baseline; }
.ag-est-top dt { font-size: .88rem; color: var(--muted); width: 3.2em; }
.ag-est-top dd { margin: 0; flex: 1; border-bottom: 1px solid var(--canary-line); color: var(--pen); font-weight: 600; padding-bottom: 2px; }
.ag-estimate table { width: 100%; border-collapse: collapse; }
.ag-estimate th, .ag-estimate td { text-align: left; vertical-align: top; padding: 13px 0; border-bottom: 1px solid var(--canary-line); }
.ag-estimate thead th { font-size: .85rem; font-weight: 600; color: var(--muted); border-bottom: 2px solid var(--ink); padding-top: 0; line-height: 1.25; }
.ag-estimate thead th + th, .ag-estimate td { width: 4.6rem; text-align: center; padding-left: 8px; }
.ag-estimate tbody th { font-weight: 700; line-height: 1.3; padding-right: 8px; }
.ag-estimate tbody th span { display: block; font-weight: 400; color: var(--muted); font-size: .9rem; line-height: 1.45; margin-top: 4px; }
.tick { color: var(--pen); font-size: 1.3rem; font-weight: 700; line-height: 1; }
.dash { color: #a8a079; }
.ag-estimate tfoot th, .ag-estimate tfoot td { border-top: 4px double var(--ink); border-bottom: 0; padding-top: 16px; font-size: 1.15rem; }
.ag-estimate tfoot td { color: var(--pen); font-weight: 800; font-stretch: 112%; font-size: clamp(1.25rem, 4vw, 1.8rem); white-space: nowrap; }
.ag-est-note { margin: 18px 0 0; font-size: .92rem; color: var(--muted); }

.ag-steps ol { list-style: none; margin: 28px 0 0; padding: 0; counter-reset: n; display: grid; gap: 30px; }
.ag-steps li { counter-increment: n; display: grid; grid-template-columns: 3rem 1fr; column-gap: 12px; }
.ag-steps li::before { content: counter(n); grid-row: span 2; font-size: 2.6rem; font-weight: 800; font-stretch: 125%; line-height: 1; }
.ag-steps p { color: var(--muted); margin: 0; max-width: 36ch; }

.ag-who-body { display: grid; gap: 28px; max-width: 54rem; }
.ag-who-body img { width: 100%; max-width: 320px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.ag-who-body p { font-size: 1.12rem; max-width: 42ch; }

.ag-contact p { color: var(--muted); font-size: 1.08rem; max-width: 40ch; }
.ag-contact p:last-child { max-width: none; }
.ag-mail { display: inline-block; margin-top: 4px; font-size: clamp(1.35rem, 5.5vw, 2.6rem); font-weight: 800; font-stretch: 110%; letter-spacing: -0.02em; color: var(--pen); text-decoration-thickness: 3px; text-underline-offset: 6px; overflow-wrap: anywhere; }

.ag-legal { border-top: 0; max-width: 46rem; margin: 0; padding-left: max(16px, calc((100vw - 1200px) / 2 + 16px)); }
.ag-legal h1 { font-size: clamp(2.2rem, 7vw, 3.4rem); margin-bottom: 8px; }
.ag-legal h2 { font-size: 1.35rem; margin: 32px 0 8px; }
.ag-legal > p:first-of-type { color: var(--muted); }

.ag-footer { max-width: 1200px; margin: 0 auto; padding: 28px 16px 40px; border-top: 2px solid var(--ink); color: var(--muted); font-size: .95rem; }
.ag-footer p { margin: 0 0 4px; }
.ag-footer strong { color: var(--ink); }

@media (min-width: 720px) {
  .ag-header nav { display: flex; margin-left: auto; }
  .ag-header-mail { margin-left: 0; }
  .ag-hero { padding: 96px 24px 72px; }
  .ag-actions { grid-template-columns: auto auto; justify-content: start; }
  .ag-header, .ag-section, .ag-footer { padding-left: 24px; padding-right: 24px; }
  .ag-section { padding-top: 88px; padding-bottom: 88px; }
  .ag-samples { margin: 0; padding: 0; grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; gap: 24px; }
  .ag-estimate { padding: 36px 40px 30px; }
  .ag-est-top { grid-template-columns: auto 1fr; align-items: end; gap: 48px; }
  .ag-est-title { font-size: 2.6rem; }
  .ag-estimate thead th + th, .ag-estimate td { width: 9rem; }
  .ag-estimate tbody th span { font-size: .95rem; }
  .ag-steps ol { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .ag-who-body { grid-template-columns: auto 1fr; align-items: start; gap: 40px; }
  .ag-legal { padding-left: max(24px, calc((100vw - 1200px) / 2 + 24px)); }
}

@media (min-width: 960px) { .ag-hero { padding-bottom: 0; } }
.ag-estimate thead .long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (min-width: 720px) {
  .ag-estimate thead .long { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .ag-estimate thead .short { display: none; }
}
