/* Chatco Education Advising
   Colors and type come from the Chatco design system.
   Layout is an editorial index: a narrow label column and a wide content column, divided by rules. */
:root {
  --surface: #FAF6F0;
  --surface-raised: #FFFFFF;
  --ink: #2A2420;
  --ink-muted: #6B6058;
  --border: #9C8A6E;
  --rule: #DDD3C4;
  --primary: #1F5C52;
  --primary-dark: #184A42;
  --primary-ink: #FFFFFF;
  --slate: #617B84;
  --slate-light: #9FB4BB;
  --accent: #A8501F;
  --error: #A8321F;

  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Work Sans", -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 6px;
  --max: 1160px;
  --label-col: 220px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 28px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }
a { color: var(--primary); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 40px; }

h1, h2, h3 { margin: 0; font-weight: 600; color: inherit; }
h1 { font-family: var(--serif); font-size: clamp(32px, 4.2vw, 50px); line-height: 1.14; letter-spacing: -0.01em; }
h2 { font-family: var(--sans); font-size: 15px; line-height: 22px; font-weight: 600; color: var(--ink); }
h3 { font-family: var(--serif); font-size: 24px; line-height: 32px; }

p { margin: 0; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--ink); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand img { width: 30px; height: 30px; display: block; }
.brand span { font-family: var(--serif); font-weight: 600; font-size: 19px; }
.brand small { font-family: var(--sans); font-size: 15px; font-weight: 400; color: var(--ink-muted); margin-left: 4px; }

.nav { display: flex; gap: 32px; font-size: 15px; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--primary); }

/* ---------- Home hero: full-bleed brand green ---------- */
.intro { background: var(--primary); color: var(--primary-ink); }
.intro .wrap {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 64px;
  align-items: end;
  padding-top: 88px;
  padding-bottom: 80px;
}
.intro h1 { max-width: 15em; }
.intro .meta { font-size: 15px; color: var(--slate-light); margin-bottom: 28px; }
.intro .sub { margin-top: 28px; max-width: 34em; color: rgba(255, 255, 255, 0.88); font-size: 18px; line-height: 30px; }
.intro .links { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.intro .links a:not(.btn) { color: var(--primary-ink); }
.intro-mark { width: 240px; height: 240px; display: block; }

/* ---------- Page heading (about, contact) ---------- */
.page-head { padding: 80px 0 56px; border-bottom: 1px solid var(--rule); }
.page-head .wrap { display: grid; grid-template-columns: var(--label-col) 1fr; gap: 40px; }
.page-head .kicker { font-size: 15px; color: var(--ink-muted); padding-top: 14px; }
.page-head .sub { margin-top: 20px; max-width: 36em; font-size: 18px; line-height: 30px; color: var(--ink-muted); }

/* ---------- Indexed sections ---------- */
.block { padding: 64px 0; border-bottom: 1px solid var(--rule); }
.block .wrap { display: grid; grid-template-columns: var(--label-col) 1fr; gap: 40px; }
.block > .wrap > h2 { padding-top: 6px; }

.rows { border-top: 1px solid var(--ink); }
.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 40px;
  padding: 28px 0 30px;
  border-bottom: 1px solid var(--rule);
}
.row:last-child { border-bottom: 0; padding-bottom: 0; }
.row p + p { margin-top: 10px; }
.row .detail { color: var(--ink-muted); font-size: 15px; line-height: 24px; }

/* Selected work table */
.work { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ink); }
.work th, .work td { text-align: left; vertical-align: top; padding: 16px 24px 16px 0; border-bottom: 1px solid var(--rule); }
.work th { font-family: var(--serif); font-size: 19px; line-height: 28px; font-weight: 600; width: 38%; }
.work td { color: var(--ink-muted); }
.work td:last-child { padding-right: 0; }
.work tr:last-child th, .work tr:last-child td { border-bottom: 0; }

/* Prose */
.prose { max-width: 40em; }
.prose p + p { margin-top: 18px; }
.prose h3 { margin: 36px 0 10px; font-size: 21px; line-height: 30px; }
.prose h3:first-child { margin-top: 0; }

.plain-list { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 40px; max-width: 40em; }
.plain-list li { padding: 6px 0; break-inside: avoid; border-bottom: 1px solid var(--rule); }

.mark-note { display: flex; gap: 24px; align-items: flex-start; max-width: 40em; }
.mark-note img { width: 64px; height: 64px; flex: none; }

/* Closing line */
.closing { padding: 72px 0 88px; }
.closing .wrap { display: grid; grid-template-columns: var(--label-col) 1fr; gap: 40px; }
.closing p { font-family: var(--serif); font-size: clamp(24px, 3vw, 32px); line-height: 1.3; max-width: 22em; }
.closing a { white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  font: 600 15px/20px var(--sans);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-light { background: var(--surface); color: var(--primary); }
.btn-light:hover { background: #FFFFFF; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--surface-raised); }

/* ---------- Contact ---------- */
.contact .wrap { display: grid; grid-template-columns: var(--label-col) minmax(0, 1fr) 260px; gap: 40px; }
.contact aside { font-size: 15px; line-height: 24px; color: var(--ink-muted); }
.contact aside p + p { margin-top: 16px; }
.contact aside strong { display: block; color: var(--ink); font-weight: 600; }

.field { margin-bottom: 22px; }
.field label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.field .optional { font-weight: 400; color: var(--ink-muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: 400 16px/24px var(--sans);
  color: var(--ink);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.field.invalid input,
.field.invalid textarea { border-color: var(--error); }
.error-msg { display: none; color: var(--error); font-size: 14px; margin-top: 6px; }
.field.invalid .error-msg { display: block; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error {
  margin: 0 0 20px;
  padding: 12px 14px;
  border: 1px solid var(--error);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  color: var(--error);
  font-size: 15px;
  line-height: 24px;
}
.btn[disabled] { opacity: 0.6; cursor: progress; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-success { display: none; border-top: 1px solid var(--ink); padding-top: 28px; }
.form-success.show { display: block; }
.form-success h3 { margin-bottom: 8px; }
.form-success p { color: var(--ink-muted); margin-bottom: 24px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--rule); padding: 28px 0; font-size: 14px; color: var(--ink-muted); }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--ink-muted); }

/* ---------- Narrow screens ---------- */
@media (max-width: 1000px) {
  :root { --label-col: 160px; }
  .row { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 900px) {
  .contact .wrap { grid-template-columns: var(--label-col) 1fr; }
  .contact aside { grid-column: 2; }
}

@media (max-width: 760px) {
  body { font-size: 16px; line-height: 26px; }
  .wrap { padding: 0 16px; }
  .brand small { display: none; }
  .nav { gap: 20px; }

  .intro .wrap { grid-template-columns: 1fr; gap: 0; padding-top: 56px; padding-bottom: 56px; }
  .intro-mark { display: none; }

  .page-head { padding: 48px 0 40px; }
  .page-head .wrap,
  .block .wrap,
  .closing .wrap,
  .contact .wrap { grid-template-columns: 1fr; gap: 20px; }
  .page-head .kicker { padding-top: 0; }
  .contact aside { grid-column: auto; }

  .block { padding: 48px 0; }
  .row { grid-template-columns: 1fr; gap: 10px; }
  .work th, .work td { display: block; width: auto; padding: 0; border: 0; }
  .work tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .work tr:last-child { border-bottom: 0; }
  .plain-list { columns: 1; }
  .pair { grid-template-columns: 1fr; gap: 0; }
  .closing { padding: 48px 0 64px; }
}
