/* camterry.com — Cameron's personal hub. Sibling of lifedomination.co (same paper, ink and type)
   with its own accent: deep evergreen, the brand spec's "outdoor / primal" color. Bronze stays LD's. */

:root {
  --bone: #EFE9DC;
  --bone-2: #E6DFCF;
  --paper: #F7F3EA;
  --ink: #1C1B19;
  --ink-2: #3A3832;
  --muted: #5E5A51;
  --pine: #2C4034;        /* personal accent */
  --pine-deep: #22332A;
  --pine-ink: #2C4034;    /* small text in pine on bone (passes contrast) */
  --on-pine: #EFE9DC;
  --on-pine-2: #BFCBC1;
  --bronze: #AD7E4E;      /* rare nod to LD */
  --rule: rgba(28, 27, 25, 0.22);

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Libre Franklin', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1160px;
  --gutter: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bone); color: var(--ink); font-family: var(--serif); font-size: 19px; line-height: 1.6; font-optical-sizing: auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pine-ink); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--pine); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--on-pine); }

.skip { position: absolute; left: 16px; top: -60px; z-index: 10; background: var(--ink); color: var(--bone); padding: 12px 16px; font-family: var(--sans); font-size: 14px; text-decoration: none; }
.skip:focus { top: 12px; color: var(--bone); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.eyebrow { margin: 0; font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--pine-ink); }
.small { margin: 0; font-family: var(--sans); font-size: 13px; color: var(--muted); }

/* ---------- Mockup note (remove before launch) ---------- */
.mock-note { background: var(--ink); color: var(--bone); font-family: var(--sans); font-size: 13px; }
.mock-note .wrap { padding-top: 9px; padding-bottom: 9px; }

/* ---------- Masthead ---------- */
.masthead .wrap { padding-top: 26px; }
.masthead__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding-bottom: 18px; border-bottom: 3px double var(--ink); }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand svg { width: 44px; height: 44px; flex: none; }
.brand__name { font-size: clamp(24px, 3.2vw, 36px); line-height: 1; letter-spacing: 0.08em; }
.brand__name .light { font-weight: 300; }
.brand__name .bold { font-weight: 500; }
.nav { display: flex; flex-wrap: wrap; gap: 0 26px; }
.nav a { font-family: var(--sans); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); text-decoration: none; padding: 10px 0; border-bottom: 1px solid transparent; }
.nav a:hover { border-bottom-color: var(--ink); color: var(--ink); }

/* ---------- Hero ---------- */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; padding-top: 44px; padding-bottom: 64px; align-items: start; }
.hero__who { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 22px 24px; align-items: end; }
.hero__photo { margin: 0; grid-row: 1; }
.hero__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%; }
.hero__name { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; gap: 10px; }
.hero__title { margin: 0; font-weight: 300; font-size: clamp(40px, 4.4vw, 64px); line-height: 0.98; letter-spacing: -0.02em; }
.hero__motto { margin: 0; font-style: italic; font-size: 20px; line-height: 1.3; color: var(--pine-ink); }
.hero__lede { grid-column: 1 / -1; margin: 0; font-size: 20px; line-height: 1.55; color: var(--ink-2); max-width: 540px; }
.socials { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; }
.socials a { font-family: var(--sans); font-size: 13px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 2px; }
.socials a:hover { border-bottom-color: var(--ink); }

/* Newsletter card: the main ask */
.letter { background: var(--pine); color: var(--on-pine); padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 12px; }
.letter .eyebrow { color: var(--on-pine-2); }
.letter h2 { margin: 0; font-weight: 400; font-size: 30px; line-height: 1.12; }
.letter p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--on-pine-2); }
.signup { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--sans); margin-top: 4px; }
.signup input[type="email"] { flex: 1 1 220px; min-height: 50px; padding: 0 16px; border: 1px solid var(--on-pine); border-radius: 0; background: var(--paper); color: var(--ink); font: inherit; font-size: 16px; }
.signup button { min-height: 50px; padding: 0 20px; border: 1px solid var(--on-pine); background: var(--on-pine); color: var(--pine-deep); font-family: var(--sans); font-size: 15px; font-weight: 600; cursor: pointer; }
.signup button:hover { background: #fff; }
.signup .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.signup__msg { flex-basis: 100%; min-height: 1.3em; margin: 0; font-size: 14px; }
.letter .signup__msg { color: var(--on-pine); }
.letter .signup__msg:empty { display: none; }
.letter__fine { margin: -2px 0 0 !important; font-family: var(--sans); font-size: 12px !important; letter-spacing: 0.04em; color: var(--on-pine-2); }

/* Link stack */
.stack { margin: 16px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.stack li { border-bottom: 1px solid var(--ink); }
.stack a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; align-items: center; padding: 16px 4px; text-decoration: none; color: var(--ink); transition: background-color .15s ease, padding .15s ease; }
.stack a:hover { background: var(--paper); color: var(--ink); padding-left: 12px; }
.stack__title { font-size: 24px; line-height: 1.15; }
.stack__dek { grid-column: 1; font-family: var(--sans); font-size: 14px; line-height: 1.45; color: var(--muted); }
.stack__go { grid-row: 1 / span 2; grid-column: 2; font-family: var(--sans); font-size: 20px; color: var(--pine-ink); }

/* Lately strip */
.lately { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--paper); }
.lately .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px; padding-top: 16px; padding-bottom: 16px; }
.lately ul { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; padding: 0; list-style: none; font-family: var(--sans); font-size: 14px; color: var(--ink-2); }
.lately li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--pine); margin-right: 9px; vertical-align: 1px; }

/* ---------- Sections ---------- */
.section .wrap { padding-top: 88px; padding-bottom: 88px; }
.section--tint { background: var(--bone-2); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; padding-bottom: 20px; margin-bottom: 36px; border-bottom: 3px double var(--ink); }
.section-head__title { display: flex; flex-direction: column; gap: 10px; }
.section-head h2 { margin: 0; font-weight: 300; font-size: clamp(38px, 4vw, 58px); line-height: 1.02; }
.section-head p { margin: 0; max-width: 440px; font-size: 17px; color: var(--ink-2); }

/* What I do */
.lanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--ink); border: 1px solid var(--ink); }
.lane { background: var(--bone); padding: 30px 28px 28px; display: flex; flex-direction: column; gap: 14px; }
.lane h3 { margin: 0; font-weight: 400; font-size: 32px; line-height: 1.05; }
.lane__role { margin: 0; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pine-ink); }
.lane p { margin: 0; font-size: 17px; color: var(--ink-2); }
.lane__links { margin: auto 0 0; padding: 14px 0 0; list-style: none; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 8px; }
.lane__links a { font-family: var(--sans); font-size: 14px; }
.lane--ld .lane__role { color: #7E562F; }      /* LD keeps its bronze */
.lane--clinic { background: #F4F2EE; }         /* LE gets a cooler, neutral register */
.lane--clinic .lane__role { color: #4A4F55; }

/* Read: guides + latest */
.read { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
.read h3 { margin: 0 0 6px; font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.guide { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.guide:hover { color: var(--ink); }
.guide:hover .guide__title { font-style: italic; }
.guide__num { flex: none; width: 40px; font-weight: 300; font-size: 40px; line-height: 0.9; color: var(--pine); }
.guide__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.guide__title { font-size: 24px; line-height: 1.15; }
.guide__dek { font-size: 16px; font-style: italic; color: var(--ink-2); }
.post-list { margin: 0; padding: 0; list-style: none; }
.post-list li { border-bottom: 1px solid var(--rule); }
.post-list a { display: flex; flex-direction: column; gap: 2px; padding: 16px 0; text-decoration: none; color: var(--ink); }
.post-list a:hover .post-list__title { font-style: italic; }
.post-list__date { font-family: var(--sans); font-size: 12px; color: var(--muted); }
.post-list__title { font-size: 21px; line-height: 1.25; }
.read__more { margin: 18px 0 0; font-family: var(--sans); font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 22px; }

/* Race log (dark section) */
.races { background: var(--pine-deep); color: var(--on-pine); }
.races .section-head { border-bottom-color: var(--on-pine); }
.races .eyebrow { color: var(--on-pine-2); }
.races .section-head p { color: var(--on-pine-2); }
.races a { color: var(--on-pine); }
.races__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.races__photo { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.races__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 35%; }
.races__photo figcaption { font-family: var(--sans); font-size: 13px; color: var(--on-pine-2); }
.log { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(239, 233, 220, .35); }
.log li { padding: 18px 0; border-bottom: 1px solid rgba(239, 233, 220, .35); display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 4px 18px; }
.log__when { font-family: var(--sans); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-pine-2); padding-top: 6px; }
.log__what { font-size: 23px; line-height: 1.2; }
.log__stats { grid-column: 2; font-family: var(--sans); font-size: 14px; color: var(--on-pine-2); }
.log__note { grid-column: 2; font-style: italic; font-size: 16px; color: var(--on-pine); }
.log .is-next .log__when { color: #D9B48A; }
.offclock { margin-top: 28px; padding: 20px 22px; border: 1px solid rgba(239, 233, 220, .35); }
.offclock h3 { margin: 0 0 10px; font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-pine-2); }
.offclock dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; font-size: 17px; }
.offclock dt { font-family: var(--sans); font-size: 13px; color: var(--on-pine-2); padding-top: 3px; }
.offclock dd { margin: 0; }

/* Gear */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.filters button { min-height: 40px; padding: 0 14px; border: 1px solid var(--rule); background: transparent; color: var(--ink); font-family: var(--sans); font-size: 13px; letter-spacing: 0.04em; cursor: pointer; }
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--pine); color: var(--on-pine); border-color: var(--pine); }
.filters .count { opacity: .65; margin-left: 4px; }
.gear { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.gear__item[hidden] { display: none; }
.gear__item { background: var(--bone); display: flex; flex-direction: column; }
.gear__link { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 22px 22px 14px; text-decoration: none; color: var(--ink); }
.gear__link:hover { background: var(--paper); color: var(--ink); }
.gear__cat { font-family: var(--sans); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.gear__name { font-size: 23px; line-height: 1.15; }
.gear__what { font-family: var(--sans); font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.gear__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 0 22px 18px; min-height: 18px; }
.perk { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--pine-ink); }
.code { display: inline-flex; align-items: center; min-height: 30px; padding: 0 10px; border: 1px dashed var(--pine); background: transparent; color: var(--ink); font-family: var(--sans); font-size: 12px; letter-spacing: 0.06em; cursor: pointer; }
.code:hover { background: var(--paper); }
.code[data-copied] { border-style: solid; background: var(--pine); color: var(--on-pine); }
.disclose { margin: 18px 0 0; font-family: var(--sans); font-size: 13px; color: var(--muted); max-width: 720px; }

/* Credentials */
.creds { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 40px; }
.creds li { padding: 16px 0; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 2px; }
.creds strong { font-weight: 400; font-size: 21px; line-height: 1.2; }
.creds span { font-family: var(--sans); font-size: 13px; color: var(--muted); }

/* Contact */
.contact .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 56px; }
.contact h2 { margin: 0; font-weight: 300; font-size: clamp(40px, 4.6vw, 66px); line-height: 1.02; }
.contact__copy { display: flex; flex-direction: column; gap: 18px; }
.contact__copy p { margin: 0; color: var(--ink-2); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; font-family: var(--sans); }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--ink); border-radius: 0; background: var(--paper); color: var(--ink); font: inherit; font-size: 16px; letter-spacing: 0; text-transform: none; }
.form textarea { min-height: 130px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 14px 28px; font-family: var(--sans); font-size: 15px; font-weight: 600; text-decoration: none; border: 1px solid var(--pine); background: var(--pine); color: var(--on-pine); cursor: pointer; }
.btn:hover { background: var(--pine-deep); color: var(--on-pine); }
.form__msg { grid-column: 1 / -1; margin: 0; min-height: 1.4em; font-size: 15px; color: var(--pine-ink); }

/* Footer */
.footer { border-top: 3px double var(--ink); }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px 24px; padding-top: 32px; padding-bottom: 44px; font-family: var(--sans); font-size: 13px; color: var(--muted); }
.footer__sign { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--ink); }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--ink); }
.footer nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap, .read, .races__grid, .contact .wrap { grid-template-columns: 1fr; gap: 40px; }
  .lanes { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 18px; }
  .nav { display: none; }
  .masthead .wrap { padding-top: 14px; }
  .masthead__inner { padding-bottom: 12px; justify-content: center; }
  .brand svg { width: 34px; height: 34px; }
  .hero .wrap { padding-top: 18px; padding-bottom: 44px; gap: 22px; }
  .hero__who { grid-template-columns: 88px minmax(0, 1fr); gap: 12px 16px; align-items: center; }
  .hero__photo img { aspect-ratio: 1; }
  .hero__title { font-size: 32px; }
  .hero__motto { font-size: 16px; }
  .hero__lede { font-size: 16px; line-height: 1.5; }
  .socials { gap: 4px 14px; }
  .socials a { font-size: 12px; }
  .letter { padding: 20px 18px 16px; }
  .letter h2 { font-size: 25px; }
  .stack__title { font-size: 21px; }
  .lately .wrap { padding-top: 12px; padding-bottom: 12px; }
  .lately ul { flex-direction: column; gap: 4px; font-size: 13px; }
  .section .wrap { padding-top: 56px; padding-bottom: 56px; }
  .section-head { margin-bottom: 24px; }
  .lane { padding: 24px 20px; }
  .log li { grid-template-columns: 1fr; }
  /* Gear: two compact columns so 24 picks don't become a mile of scrolling */
  .gear { grid-template-columns: 1fr 1fr; }
  .gear__link { padding: 16px 14px 8px; gap: 4px; }
  .gear__cat { display: none; }
  .gear__name { font-size: 19px; }
  .gear__what { font-size: 13px; }
  .gear__foot { padding: 0 14px 14px; }
  .perk { font-size: 11px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .filters button { flex: none; }
  .footer__sign { flex-basis: 100%; }
  .log__stats, .log__note { grid-column: 1; }
  .form { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
