/* Type, spacing and edges, loaded last on every page.

   It restates the original selectors, or stronger ones, so these values win:
   - Display (Fraunces, fully soft and wonky): page titles share one size (the hero, the closing
     "What's on your desk?" and Say hello) and section titles another, both at weight 400 in
     Fraunces' display drawing (opsz 144), so a title looks the same at every size. Card, offer and
     form titles are a step smaller, at 460, in the drawing made for their size. The order reads
     page > section > card on phones too.
   - Text (Figtree): lead 19px/1.5 on desktop, body 17px/1.6 (16px on phones) and small 14px/1.5.
   - Numbers (Courier Prime): "No. 01" typed on a dashed line, like a numbered memo from the desk.
   - Letterhead: the hero's "From the desk of Kyle Cooney" is a desk plaque drawing
     (desk-plaque.svg), sized in step with the hero title.
   - Handwriting (Caveat): Kyle's voice. A short handwritten line (.kicker) introduces every
     other section where a small-caps eyebrow used to, and a few asides close one. site.js sets
     their words on a gentle arc; keep them plain text, with no links or other markup.
   - Detail: the fonts' own kerning and ligatures, no faked bold or italic, a hair of tracking on
     small text and controls, and finer link underlines. Handwriting is never tracked.
   - Spacing: 8px from a handwritten line to its title (22px under the hero plaque), 24px from title
     to text, 16px to meta lines, 32px to a button, and 80px of section padding (56px on
     phones).
   - Edges: the header and footer share the content column's left and right edges.
   The fonts are self-hosted, subset to Latin (asset-sources/fonts.json has how each was made).
   Color and shape tokens (tints, the hairline, the pill and card shapes) live in color.css. */

@font-face{font-family:Fraunces;src:url('/assets/fonts/Fraunces-soft-variable.woff2') format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:Figtree;src:url('/assets/fonts/Figtree-variable.woff2') format('woff2');font-weight:300 900;font-style:normal;font-display:swap}
@font-face{font-family:'Courier Prime';src:url('/assets/fonts/CourierPrime-Regular.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:Caveat;src:url('/assets/fonts/Caveat-500.woff2') format('woff2');font-weight:500;font-style:normal;font-display:swap}

:root{--serif:Fraunces,Georgia,serif;--sans:Figtree,Arial,sans-serif}
/* The company module reads its own copies of the families */
.me-good-company{--me-gc-serif:var(--serif);--me-gc-sans:var(--sans)}

/* Detail */
body{font-kerning:normal;font-variant-ligatures:common-ligatures contextual;font-synthesis:none}
h1,h2,h3,.me-gc-title{text-rendering:optimizeLegibility}
.principle-grid .principle-note,.deliverable-list div>span,.form-note,.small-note,.interest-options label>span{letter-spacing:.008em}
.site-header nav a,.button,.story-cta,.hero-hello{letter-spacing:.012em}
.form-note a,#copy-status a{text-decoration-thickness:1px;text-underline-offset:.24em;text-decoration-skip-ink:auto}

/* Handwriting */
.kicker,.brand-aside,.hello-personal .hello-aside{font-family:Caveat,var(--sans);font-weight:500;font-style:normal;font-size:1.625rem;line-height:1.25;letter-spacing:0;text-transform:none;color:var(--muted);text-wrap:balance}
.kicker{margin:0 0 8px}
.story-invitation .kicker{grid-column:1/-1;color:var(--sun)}
.story-section-heading .kicker+h2,.me-good-company .kicker+.me-gc-title,.story-invitation .kicker+h2,.hello-personal .hello-intro .kicker+h1,.enquiry-preview .kicker+h3{margin-top:0}
.enquiry-sent h3{margin-bottom:16px}
.hand-note .hand-word{display:inline-block}
.hand-note .sr-only{-webkit-user-select:none;user-select:none}
.hand-write.is-unwritten .hand-word{clip-path:inset(-40% 100% -40% -8%)}
@media print{.hand-write .hand-word{clip-path:none!important}}

/* Letterhead: the desk plaque, sized in step with the hero title */
.letterhead{margin:0 0 22px;line-height:0}
.letterhead img{display:block;width:clamp(18.75rem,22.5vw,22.5rem);height:auto}

/* Page titles: the hero, the closing title and Say hello share one size */
.home-hero h1,.story-invitation h2,.hello-personal .hello-intro h1{font-size:clamp(3.68rem,5.336vw,5.336rem);font-weight:400;font-variation-settings:"opsz" 144;letter-spacing:-.02em}
.home-hero h1{line-height:.936}
.story-invitation h2,.hello-personal .hello-intro h1{line-height:.9672}
.hello-personal .hello-intro h1{max-width:none}

/* Section titles share one size */
.home-principles .story-section-heading h2,.home-capabilities .story-section-heading h2,.me-good-company .me-gc-title{font-size:clamp(2.53rem,4.324vw,3.91rem);font-weight:400;font-variation-settings:"opsz" 144;line-height:1.0192;letter-spacing:-.012em}

/* Card, offer and form titles share a smaller one */
.principle-grid h3,.home-capabilities .deliverable-list h3,#enquiry-form h2,.enquiry-sent h3{font-size:2.3903rem;line-height:1.0816}
.principle-grid h3,.home-capabilities .deliverable-list h3,#enquiry-form h2,.enquiry-sent h3,.enquiry-preview h3{font-weight:460;font-variation-settings:normal;letter-spacing:0}
.principle-grid h3{margin:0 0 24px}

/* Numbers: "No. 01" typed on a dashed line. In the offers list the label sits on the title's first line. */
.principle-grid article>span,.deliverable-list article>span{font:400 .95rem/1.2 'Courier Prime',ui-monospace,monospace;letter-spacing:.02em;color:var(--ink);padding-bottom:4px;border-bottom:1px dashed rgb(41 62 57 / 38%)}
.principle-grid article>span::before,.deliverable-list article>span::before{content:"No. "}
.deliverable-list article{grid-template-columns:86px .9fr 1.1fr}
.deliverable-list article>span{justify-self:start;margin-top:.8rem}
@media(max-width:1000px){.deliverable-list article{grid-template-columns:80px .9fr 1.1fr}}

/* Text */
.hero-subtitle{line-height:1.5;margin-top:24px}
.hello-personal .hello-intro .lede{font-size:1.1875rem;line-height:1.5}
.principle-grid p,.deliverable-list p,.story-invitation p:not(.eyebrow):not(.kicker){font-size:1.0625rem;line-height:1.6}
.principle-grid .principle-note,.deliverable-list div>span,.form-note{font-size:.875rem;line-height:1.5}
.form-intro{line-height:1.6;margin:16px 0 24px}

/* Spacing */
section.home-principles,section.home-capabilities,.story-invitation,.me-good-company{padding-top:80px;padding-bottom:80px}
.deliverable-list div>span{margin-top:16px}
.principle-grid .principle-note{margin-top:24px;padding-top:16px}
.brand-aside{margin-top:24px}
.story-cta{margin-top:32px}
.hero-hello{margin-top:32px}
.story-invitation>.story-shell{row-gap:0}
.hello-personal .hello-intro h1{margin:0 0 24px}
@media(max-width:800px){.story-invitation>.story-shell>div{margin-top:24px}}
/* In the two-column closing, the text column spans both rows and any extra height
   goes above the handwritten line, so it stays tight to its title while the title and button still share a bottom edge */
@media(min-width:801px){.story-invitation>.story-shell{grid-template-rows:1fr auto}.story-invitation .kicker{grid-column:1;grid-row:1}.story-invitation h2{grid-column:1;grid-row:2}.story-invitation>.story-shell>div{grid-column:2;grid-row:1/span 2}}

/* Edges: above 700px the header and footer line up with the content column, which stops
   growing at 1240px. The footer's box is the column itself, so its rule spans the content. */
@media(min-width:701px){
 .site-header{padding-left:max(5%,calc((100% - 1240px) / 2 + 5%));padding-right:max(5%,calc((100% - 1240px) / 2 + 5%))}
 .site-footer{max-width:none;margin-left:max(5%,calc((100% - 1240px) / 2 + 5%));margin-right:max(5%,calc((100% - 1240px) / 2 + 5%));padding-left:0;padding-right:0}
 footer.site-footer::before{left:0}
 /* The sign-off sits beside the logo, centered on it */
 .site-footer{grid-template-columns:auto minmax(0,1fr);column-gap:28px}
 .site-footer>a:not(.footer-brand),.site-footer>span{grid-column:2}
}

/* Phones */
@media(max-width:700px){
 /* Each hero line is glued so no browser splits it; the caps keep "of useful ideas." (5.3em) and
    "Serious about people." inside the column on the narrowest phones */
 .home-hero h1,.hello-personal .hello-intro h1{font-size:min(clamp(3.496rem,11.776vw,5.06rem),15.8vw);line-height:.9776}
 .story-invitation h2{font-size:3.22rem}
 .home-principles .story-section-heading h2,.home-capabilities .story-section-heading h2,.me-good-company .me-gc-title{font-size:min(2.254rem,10.7vw);line-height:1.0816}
 .principle-grid h3,.home-capabilities .deliverable-list h3,#enquiry-form h2,.enquiry-sent h3{font-size:1.804rem}
 /* The number labels sit above the offer titles */
 .deliverable-list article{grid-template-columns:1fr;gap:12px}
 .deliverable-list article>:is(span,h3,div){grid-column:1}
 .deliverable-list article>span{margin-top:0}
 .principle-grid p,.deliverable-list p,.story-invitation p:not(.eyebrow):not(.kicker){font-size:1rem}
 .hero-subtitle{line-height:1.6}
 .hello-personal .hello-intro .lede{font-size:1.0625rem;line-height:1.6}
 .kicker,.brand-aside,.hello-personal .hello-aside{font-size:1.5rem}
 .letterhead{margin-bottom:18px}
 .letterhead img{width:min(18.75rem,88vw)}
 section.home-principles,section.home-capabilities,.story-invitation,.me-good-company{padding-top:56px;padding-bottom:56px}
}
