/* Fair Copy — shared styles */
:root {
  --paper: #fbf8f2;
  --paper-2: #f3eee3;
  --ink: #1f2a2e;
  --ink-soft: #4d5a5e;
  --rule: #ddd5c4;
  --accent: #1f5b63;      /* deep teal: ink on a proof */
  --accent-soft: #e2ecea;
  --mark: #b2442d;        /* proofreader's red, used sparingly */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 68rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--mark); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 48rem) { .wrap { padding: 0 2rem; } }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; }
.skip:focus { left: 1rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 2rem; padding-top: 1rem; padding-bottom: 1rem; }
.brand { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand span { color: var(--mark); }
.nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; font-size: 1rem; }
.nav a { color: var(--ink-soft); text-decoration: none; padding: .25rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.nav .btn, .nav .btn:hover { padding: .4rem .9rem; border-bottom: 0; color: #fff; }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin-top: 0; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.3rem; color: var(--ink-soft); max-width: 40rem; }
.eyebrow { font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: .75rem; }
.small { font-size: .95rem; color: var(--ink-soft); }

/* Buttons */
.btn { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; padding: .75rem 1.3rem; border-radius: 6px; border: 2px solid var(--accent); }
.btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.ghost:hover { background: var(--accent); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* Sections */
section { padding: 3.5rem 0; }
section + section { border-top: 1px solid var(--rule); }
.hero { padding: 4rem 0 3.5rem; }
.hero h1 { max-width: 44rem; }
.hero h1 em { font-style: italic; color: var(--accent); }
.tint { background: var(--paper-2); }

/* Proof mark motif in hero */
.proof { font-family: var(--serif); font-size: 1.15rem; background: #fff; border: 1px solid var(--rule); border-radius: 8px; padding: 1.25rem 1.5rem; max-width: 34rem; margin-top: 2rem; }
.proof del { color: var(--mark); text-decoration-thickness: 2px; }
.proof ins { color: var(--accent); text-decoration: none; border-bottom: 2px solid var(--accent); }
.proof .note { display: block; font-family: var(--sans); font-size: .9rem; color: var(--ink-soft); margin-top: .75rem; }

/* Grids and cards */
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 48rem) {
  .grid.two { grid-template-columns: 1fr 1fr; }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
}
.card { background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: 1.5rem; display: flex; flex-direction: column; }
.card p:last-child { margin-bottom: 0; }
.card .btn { align-self: flex-start; margin-top: auto; }
.route { border-top: 4px solid var(--accent); }
.route.later { border-top-color: var(--ink-soft); }
.route ul { padding-left: 1.2rem; margin: 0 0 1.5rem; }

/* Will / won't */
.rules { display: grid; gap: 1.25rem; }
@media (min-width: 48rem) { .rules { grid-template-columns: 1fr 1fr; } }
.rules ul { list-style: none; padding: 0; margin: 0; }
.rules li { padding: .55rem 0 .55rem 2rem; border-bottom: 1px solid var(--rule); position: relative; }
.rules li:last-child { border-bottom: 0; }
.rules .will li::before { content: "✓"; position: absolute; left: .2rem; color: var(--accent); font-weight: 700; }
.rules .wont li::before { content: "✕"; position: absolute; left: .2rem; color: var(--mark); font-weight: 700; }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: 1.25rem; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; margin-bottom: .6rem; }
.steps strong { display: block; margin-bottom: .25rem; }

/* Price table */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--rule); border-radius: 10px; font-size: 1rem; }
th, td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th { font-size: .85rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); background: var(--paper-2); }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }

/* FAQ */
details { border-bottom: 1px solid var(--rule); padding: 1rem 0; }
details summary { cursor: pointer; font-weight: 600; font-size: 1.1rem; }
details p { margin: .75rem 0 0; color: var(--ink-soft); }

/* About */
.about { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 48rem) { .about { grid-template-columns: 14rem 1fr; } }
.photo { width: 14rem; max-width: 100%; aspect-ratio: 4 / 5; background: var(--paper-2); border: 1px dashed var(--rule); border-radius: 10px; display: grid; place-items: center; color: var(--ink-soft); font-size: .9rem; text-align: center; padding: 1rem; }
.creds { list-style: none; padding: 0; margin: 1rem 0 0; }
.creds li { padding: .4rem 0 .4rem 1.5rem; position: relative; }
.creds li::before { content: ""; position: absolute; left: 0; top: .95rem; width: .6rem; height: .6rem; background: var(--accent); border-radius: 2px; }

/* Form */
form { background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: 1.5rem; display: grid; gap: 1.1rem; max-width: 40rem; }
label, legend { font-weight: 600; display: block; margin-bottom: .3rem; }
.hint { font-weight: 400; font-size: .9rem; color: var(--ink-soft); display: block; }
input[type="text"], input[type="email"], input[type="number"], input[type="date"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: .65rem .75rem; border: 1px solid #c9c0ad; border-radius: 6px; background: var(--paper);
  color: var(--ink);
}
textarea { min-height: 7rem; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; }
.choice { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; margin: .35rem 0; }
.choice input { margin-top: .35rem; width: 1.1rem; height: 1.1rem; flex: none; }
.form-row { display: grid; gap: 1.1rem; }
@media (min-width: 36rem) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.notice { background: var(--accent-soft); border-left: 4px solid var(--accent); padding: 1rem 1.25rem; border-radius: 0 8px 8px 0; }
.student-only[hidden] { display: none; }

/* Prose pages */
.prose { max-width: 42rem; }
.prose h2 { font-size: 1.5rem; margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 2rem 0 3rem; font-size: .95rem; color: var(--ink-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
.site-footer a { color: var(--ink-soft); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
button.btn { font: inherit; font-weight: 600; cursor: pointer; justify-self: start; }

/* Placeholder until the photo is ready: swap the div for <img class="photo" src="mat.jpg" alt="Mat Thacker"> */
.photo.monogram { border: 0; background: var(--accent); color: var(--paper); font-family: var(--serif); font-size: 4rem; letter-spacing: .04em; }
img.photo { object-fit: cover; padding: 0; border: 0; }
