/* Hopkins Action: skin.css
 * The "field notes" look: paper, ink, torn green bands, typewriter labels.
 * Loaded after theme.css. It re-points the colour and type variables the
 * older pages use, then adds the new pieces (class names start fn-).
 */

@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/fonts/bricolage-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("/assets/fonts/courier-prime-400-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("/assets/fonts/courier-prime-700-latin.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("/assets/fonts/caveat-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
	--fn-paper: #EFE6D2;
	--fn-paper-deep: #E4D8BD;
	--fn-ink: #1C2618;
	--fn-ink-soft: #3F4737;
	--fn-green: #36452B;
	--fn-green-deep: #2A3721;
	--fn-rust: #A0371A;
	--fn-rust-deep: #8A2E14;
	--fn-line: #BBAB86;
	--fn-display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
	--fn-mono: "Courier Prime", "Courier New", ui-monospace, monospace;
	--fn-hand: "Caveat", "Segoe Print", cursive;
	--fn-grain: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22320%22 height=%22320%22%3E%3Cfilter id=%22n%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%22.8%22 numOctaves=%223%22 stitchTiles=%22stitch%22/%3E%3CfeColorMatrix values=%220 0 0 0 .25  0 0 0 0 .2  0 0 0 0 .1  0 0 0 .55 -.18%22/%3E%3C/filter%3E%3Crect width=%22100%25%22 height=%22100%25%22 filter=%22url%28%23n%29%22/%3E%3C/svg%3E");
	--fn-torn-top: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 1200 18%22 preserveAspectRatio=%22none%22%3E%3Cpath d=%22M0,18 L0,4.0 L19,9.0 L33,8.6 L41,2.9 L50,12.7 L59,10.2 L84,7.2 L110,13.2 L122,3.5 L135,3.3 L153,6.8 L170,2.8 L181,7.6 L194,7.9 L207,11.1 L219,8.8 L242,5.7 L268,7.4 L289,8.4 L297,11.9 L315,5.6 L335,9.5 L351,17.0 L367,2.8 L387,14.9 L410,7.0 L430,8.0 L440,2.8 L461,5.2 L476,1.5 L491,13.5 L514,5.0 L529,13.5 L554,4.3 L565,8.3 L584,2.1 L598,9.4 L624,8.7 L642,2.7 L666,13.4 L689,7.2 L698,2.8 L706,4.1 L719,2.0 L729,6.7 L737,11.1 L746,6.5 L760,13.0 L786,8.3 L795,6.5 L807,2.9 L814,9.5 L824,2.4 L841,15.5 L861,6.8 L872,8.9 L893,4.9 L916,15.3 L938,13.3 L949,6.6 L957,5.6 L969,14.4 L984,17.8 L1010,4.9 L1021,4.7 L1040,15.1 L1056,12.4 L1064,13.8 L1086,8.2 L1097,6.3 L1119,7.1 L1134,13.0 L1144,4.0 L1168,2.6 L1191,11.8 L1200,4.0 L1200,18 Z%22/%3E%3C/svg%3E");
	--fn-torn-bottom: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 1200 18%22 preserveAspectRatio=%22none%22%3E%3Cpath d=%22M0,0 L0,3.7 L7,11.7 L24,7.8 L48,3.8 L60,5.1 L78,7.4 L87,6.4 L103,13.8 L118,9.0 L135,2.2 L150,2.1 L173,8.2 L193,6.2 L210,12.2 L219,5.2 L232,8.6 L249,13.9 L265,8.6 L281,7.9 L298,14.2 L319,17.0 L331,14.3 L354,3.6 L369,5.1 L377,12.2 L401,11.3 L421,13.5 L446,14.4 L461,14.9 L484,7.6 L501,4.5 L514,2.3 L531,2.2 L544,8.7 L553,14.2 L578,5.5 L586,5.5 L595,13.8 L618,3.9 L642,11.1 L651,10.9 L666,14.2 L685,1.5 L708,13.2 L724,9.2 L749,3.7 L766,3.4 L776,4.6 L789,11.9 L801,4.3 L815,5.3 L822,9.2 L833,14.2 L842,7.8 L858,7.1 L875,14.8 L888,12.7 L907,6.5 L915,2.9 L936,4.1 L945,15.7 L965,5.1 L977,4.0 L993,14.5 L1018,5.2 L1044,6.6 L1051,8.2 L1067,8.6 L1074,3.2 L1089,2.3 L1102,9.6 L1119,10.5 L1139,7.0 L1153,2.7 L1173,2.6 L1196,11.3 L1200,3.7 L1200,0 Z%22/%3E%3C/svg%3E");

	/* The older pages' variables, re-pointed. */
	--wp--preset--color--forest: var(--fn-paper);
	--wp--preset--color--forest-raised: rgba(112, 90, 40, .1);
	--wp--preset--color--forest-high: rgba(112, 90, 40, .18);
	--wp--preset--color--rule: var(--fn-line);
	--wp--preset--color--sage: var(--fn-ink-soft);
	--wp--preset--color--moss: #555C49;
	--wp--preset--color--cream: var(--fn-green);
	--wp--preset--color--cream-deep: var(--fn-green-deep);
	--wp--preset--color--bark: #DAD3BC;
	--wp--preset--color--white: var(--fn-ink);
	--wp--preset--color--alert: #9A2B1B;
	--wp--preset--color--rust: var(--fn-rust);
	--wp--preset--font-family--roboto: var(--fn-display);
	--wp--preset--font-family--roboto-condensed: var(--fn-mono);
	--wp--preset--font-family--mono: var(--fn-mono);
	--ha-field-line: #6E6A4F;
	--ha-radius: 3px;
}

body {
	background-color: var(--fn-paper);
	background-image: var(--fn-grain), radial-gradient(60rem 40rem at 85% -5%, rgba(160, 120, 50, .12), transparent 70%), radial-gradient(50rem 36rem at -10% 60%, rgba(160, 120, 50, .1), transparent 70%);
	color: var(--fn-ink);
	font-family: var(--fn-display);
	font-variation-settings: "opsz" 14;
}
h1, h2, h3, h4, .wp-block-heading { font-family: var(--fn-display); font-weight: 800; letter-spacing: -0.025em; color: inherit; font-variation-settings: "opsz" 60; }
main a { color: inherit; }
::selection { background: var(--fn-rust); color: var(--fn-paper); }

/* Typewriter labels */
.is-style-kicker, .fn-label {
	font-family: var(--fn-mono) !important; font-style: normal !important; font-weight: 400; text-transform: uppercase;
	letter-spacing: .08em; font-size: 14px !important; color: var(--fn-ink-soft);
}
.is-style-kicker a { color: inherit; }
.fn-label--rust { color: var(--fn-rust); }

/* ---------- Header ---------- */
.ha-header { background: transparent; border-bottom: 0; }
.ha-header__inner { border-bottom: 1.5px solid var(--fn-ink); }
.ha-logo { display: inline-flex; align-items: center; gap: 12px; color: var(--fn-ink); text-decoration: none; min-height: var(--ha-tap); }
.ha-logo img { width: 76px; height: auto; }
.ha-logo__text { display: grid; line-height: 1.05; }
.ha-logo__text strong { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; text-transform: uppercase; }
.ha-logo__text span { font-family: var(--fn-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--fn-ink-soft); margin-top: 4px; }
@media (max-width: 719px) { .ha-logo img { width: 58px; } .ha-logo__text strong { font-size: 19px; } .ha-logo__text span { display: none; } }
.ha-nav .wp-block-navigation-item__content { color: var(--fn-ink); font-weight: 600; }
.ha-nav .ha-nav__cta .wp-block-navigation-item__content {
	background: var(--fn-rust); color: var(--fn-paper) !important; border: 0; border-radius: 3px; text-decoration: none;
}
.ha-nav .ha-nav__cta .wp-block-navigation-item__content:hover { background: var(--fn-rust-deep); }
.ha-menu-toggle { color: var(--fn-ink); border-color: var(--fn-ink); background: transparent; }
.ha-menu-toggle__bars, .ha-menu-toggle__bars::before, .ha-menu-toggle__bars::after { background: var(--fn-rust); }

/* ---------- Buttons ---------- */
.wp-block-button .wp-block-button__link, .ha-form__submit, .fn-btn {
	background: var(--fn-rust) !important; color: var(--fn-paper) !important; border: 0 !important; border-radius: 3px;
	font-family: var(--fn-display); font-weight: 700; letter-spacing: 0; text-decoration: none;
	box-shadow: 2px 3px 0 rgba(28, 38, 24, .25);
	transition: transform .15s var(--ha-ease), box-shadow .15s var(--ha-ease), background-color .15s;
}
.wp-block-button .wp-block-button__link:hover, .ha-form__submit:hover, .fn-btn:hover { background: var(--fn-rust-deep) !important; transform: translate(1px, 1px); box-shadow: 1px 2px 0 rgba(28, 38, 24, .25); }
.wp-block-button.is-style-ghost .wp-block-button__link, .fn-link {
	background: transparent !important; color: inherit !important; box-shadow: none; padding-inline: 4px; border-radius: 0;
	text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .3em; font-weight: 700;
}
.wp-block-button.is-style-ghost .wp-block-button__link:hover, .fn-link:hover { background: transparent !important; color: var(--fn-rust) !important; transform: none; box-shadow: none; }
.fn-btn { display: inline-flex; align-items: center; min-height: var(--ha-tap); padding: 0 22px; }
.fn-link { display: inline-block; padding-block: 12px; }
.has-cream-background-color .wp-block-button.is-style-ghost .wp-block-button__link:hover, .fn-green .fn-link:hover { color: #F0B79F !important; }
@media (prefers-reduced-motion: reduce) { .wp-block-button .wp-block-button__link, .fn-btn { transition: none; } }

/* ---------- Green torn bands ---------- */
.has-cream-background-color, .fn-green, .ha-footer {
	position: relative; z-index: 1; margin-block: -16px !important;
	background-color: var(--fn-green) !important; background-image: var(--fn-grain); color: var(--fn-paper);
	-webkit-mask: var(--fn-torn-top) top / 1200px 17px repeat-x, var(--fn-torn-bottom) bottom / 1200px 17px repeat-x, linear-gradient(#000 0 0) center / 100% calc(100% - 32px) no-repeat;
	mask: var(--fn-torn-top) top / 1200px 17px repeat-x, var(--fn-torn-bottom) bottom / 1200px 17px repeat-x, linear-gradient(#000 0 0) center / 100% calc(100% - 32px) no-repeat;
}
.ha-footer { margin-bottom: 0 !important; -webkit-mask: var(--fn-torn-top) top / 1200px 17px repeat-x, linear-gradient(#000 0 0) bottom / 100% calc(100% - 16px) no-repeat; mask: var(--fn-torn-top) top / 1200px 17px repeat-x, linear-gradient(#000 0 0) bottom / 100% calc(100% - 16px) no-repeat; background-color: var(--fn-green-deep) !important; }
.has-cream-background-color :where(h1, h2, h3, p, li), .fn-green :where(h1, h2, h3, p, li) { color: inherit; }
.has-cream-background-color :focus-visible, .fn-green :focus-visible, .ha-footer :focus-visible { outline-color: var(--fn-paper) !important; }
.ha-cta h2 { max-width: 24ch; }

/* Rules between sections: an ink line, not hatching */
.wp-block-separator.is-style-hatch { background: none; border: 0; border-top: 1.5px dashed var(--fn-line); height: 0; opacity: 1; }

/* ---------- Older page furniture on paper ---------- */
.ha-hero h1 { letter-spacing: -0.035em; }
.ha-rows { border-top: 1.5px solid var(--fn-ink); }
.ha-row { border-bottom: 1px dashed var(--fn-line); }
.ha-row__line a, .ha-email a { color: var(--fn-rust); }
.is-style-panel { background: rgba(255, 252, 240, .45); border: 1.5px solid var(--fn-ink); box-shadow: 3px 4px 0 rgba(28, 38, 24, .12); }
.ha-field input, .ha-field select, .ha-field textarea { background-color: rgba(255, 252, 240, .6); color: var(--fn-ink); border: 1.5px solid var(--ha-field-line); }
.ha-field :is(input, select, textarea):focus-visible { outline-color: var(--fn-rust); border-color: var(--fn-rust); }
.ha-form-status.is-sent { border-color: var(--fn-green); }
.ha-tile__icon img, .ha-product-hero img[src*="icon-"], img[src*="/icon-"] { filter: brightness(0) saturate(100%) invert(11%) sepia(14%) saturate(1100%) hue-rotate(60deg); }
.has-cream-background-color img[src*="/icon-"] { filter: none; }
.ha-project-card__media, .ha-project__shot img, .ha-shot img { border: 1.5px solid var(--fn-ink); border-radius: 2px; box-shadow: 4px 5px 0 rgba(28, 38, 24, .14); }
.wp-block-details summary { font-weight: 700; }
.ha-lead { border-top-color: var(--fn-paper); }
.ha-lead:focus-within { outline-color: var(--fn-paper); }
.ha-service-links a { text-decoration-color: rgba(239, 230, 210, .4); }

/* ---------- Footer ---------- */
/* After a green band the footer needs no torn edge of its own. */
main:has(> :is(.has-cream-background-color, .fn-green):last-child, > div:last-child > :is(.has-cream-background-color, .fn-green):last-child) { margin-bottom: 0; padding-bottom: 0; }
main:has(> :is(.has-cream-background-color, .fn-green):last-child, > div:last-child > :is(.has-cream-background-color, .fn-green):last-child) + footer { margin-top: -2px !important; }
main:has(> :is(.has-cream-background-color, .fn-green):last-child, > div:last-child > :is(.has-cream-background-color, .fn-green):last-child) + footer .ha-footer { -webkit-mask: none; mask: none; padding-top: var(--wp--preset--spacing--40); }
/* ...and the band itself loses its torn bottom edge and fades into the footer's darker green. */
main > :is(.has-cream-background-color, .fn-green):last-child, main > div:last-child > :is(.has-cream-background-color, .fn-green):last-child {
	margin-bottom: 0 !important;
	background-image: var(--fn-grain), linear-gradient(to bottom, rgba(42, 55, 33, 0) calc(100% - 180px), var(--fn-green-deep)) !important;
	-webkit-mask: var(--fn-torn-top) top / 1200px 17px repeat-x, linear-gradient(#000 0 0) bottom / 100% calc(100% - 16px) no-repeat;
	mask: var(--fn-torn-top) top / 1200px 17px repeat-x, linear-gradient(#000 0 0) bottom / 100% calc(100% - 16px) no-repeat;
}
.ha-footer { padding-top: calc(var(--wp--preset--spacing--50) + 16px); border-top: 0; }
.ha-footer, .ha-footer a, .ha-footer .wp-block-navigation-item__content { color: var(--fn-paper) !important; }
.ha-footer__logo img { filter: none; }
.ha-footer__legal { border-top: 1px dashed rgba(239, 230, 210, .35); font-family: var(--fn-mono); }
.ha-footer__legal, .ha-footer__legal a { color: #D6CFB8 !important; }

/* ======================================================================
 * Field notes: the home page and About
 * ==================================================================== */
.fn-wrap { max-width: 1180px; margin-inline: auto; }
.fn-hero, .fn-section { padding-inline: var(--wp--style--root--padding-left, 20px); overflow-x: clip; }
.fn-section { padding-block: clamp(48px, 7vw, 88px); }
.fn-section h2 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1; margin: 0; }
.fn-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; }
.fn-head .fn-label { margin: 0 0 10px; }

/* Hero */
.fn-hero { padding-block: clamp(28px, 4vw, 48px) clamp(36px, 5vw, 64px); }
.fn-hero__grid { display: grid; gap: 24px; align-items: center; }
.fn-hero .fn-label { margin: 0 0 14px; }
.fn-hero .fn-label--rust { font-size: 17px !important; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .35em; margin-bottom: 18px; }
.fn-hero h1 { font-size: clamp(44px, 6.3vw, 86px); line-height: .93; letter-spacing: -0.045em; margin: 0 0 1.4rem; }
.fn-hero h1 span { display: block; }
.fn-brush { position: relative; display: inline-block !important; }
.fn-brush::after {
	content: ""; position: absolute; left: -2%; right: 28%; bottom: -.13em; height: .13em; background: var(--fn-rust);
	border-radius: 60% 40% 70% 30% / 100% 60% 80% 40%; transform: rotate(-1.2deg); transform-origin: left;
}
.fn-hero__lede { font-size: clamp(19px, 2vw, 23px); line-height: 1.35; max-width: 31ch; margin: 0 0 1.6rem; }
.fn-actions { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; }
.fn-hero__art { max-width: 300px; justify-self: center; }
.fn-hero__art img { width: 100%; height: auto; display: block; filter: drop-shadow(3px 4px 0 rgba(28, 38, 24, .12)); }
@media (min-width: 820px) {
	.fn-hero h1 span { white-space: nowrap; }
	.fn-hero__grid { grid-template-columns: 1.3fr 1fr; gap: 32px; }
	.fn-hero__art { max-width: none; justify-self: stretch; margin-right: -3%; transform: rotate(2deg); }
}
@media (prefers-reduced-motion: no-preference) {
	.fn-hero h1 span, .fn-hero__lede, .fn-hero .fn-actions, .fn-hero__art { animation: fn-rise .7s var(--ha-ease) both; }
	.fn-hero h1 span:nth-child(2) { animation-delay: .08s; }
	.fn-hero__lede { animation-delay: .16s; } .fn-hero .fn-actions { animation-delay: .24s; } .fn-hero__art { animation-delay: .1s; }
	.fn-brush::after { animation: fn-draw .6s .5s var(--ha-ease) both; }
}
@keyframes fn-rise { from { opacity: 0; translate: 0 14px; } }
@keyframes fn-draw { from { scale: 0 1; } }

/* What I do: an index in large type on a green band */
.fn-green > .fn-wrap > .fn-label { color: #D6CFB8; margin: 0 0 6px; font-weight: 400; letter-spacing: .08em; }
.fn-index { list-style: none; margin: 0; padding: 0; }
.fn-index li { border-top: 1px solid rgba(239, 230, 210, .3); }
.fn-index li:first-child { border-top: 0; }
.fn-index a { display: grid; gap: 4px 40px; align-items: baseline; padding: 18px 0; color: var(--fn-paper); text-decoration: none; }
.fn-index__name { font-weight: 800; font-size: clamp(27px, 4.4vw, 54px); line-height: 1.02; letter-spacing: -0.035em; font-variation-settings: "opsz" 60; transition: translate .2s var(--ha-ease); }
.fn-index__line { color: #E3DCC6; font-size: 17px; line-height: 1.4; max-width: 34ch; }
.fn-index a:hover .fn-index__name { translate: 10px 0; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .12em; text-decoration-color: #F0B79F; }
@media (min-width: 900px) {
	.fn-index a { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); padding: 20px 0; }
}
@media (prefers-reduced-motion: reduce) { .fn-index__name { transition: none; } }

/* Field reports on the home page: one big, two small */
.fn-reports { display: grid; gap: 36px; margin-top: clamp(24px, 3vw, 40px); }
.fn-report { position: relative; }
.fn-report__shot { aspect-ratio: 16 / 10; overflow: hidden; border: 1.5px solid var(--fn-ink); background: var(--fn-paper-deep); box-shadow: 4px 5px 0 rgba(28, 38, 24, .16); }
.fn-report--lead .fn-report__shot { transform: rotate(-.7deg); }
.fn-report__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.fn-report .fn-label { margin: 14px 0 2px; font-size: 12.5px !important; }
.fn-report h3 { font-size: 24px; line-height: 1.1; margin: 0 0 .3rem; }
.fn-report--lead h3 { font-size: clamp(28px, 3.4vw, 40px); }
.fn-report h3 a { text-decoration: none; display: inline-flex; align-items: center; min-height: var(--ha-tap); }
.fn-report h3 a::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.fn-report:hover h3 a { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .15em; text-decoration-color: var(--fn-rust); }
.fn-report:focus-within { outline: 3px solid var(--fn-rust); outline-offset: 8px; }
.fn-report h3 a:focus-visible { outline: none; }
.fn-report__text p:last-child { margin: 0; color: var(--fn-ink-soft); font-size: 16.5px; line-height: 1.4; max-width: 38ch; }
@media (min-width: 900px) {
	.fn-reports { grid-template-columns: 7fr 5fr; grid-template-rows: auto 1fr; gap: 28px 48px; align-items: start; }
	.fn-report--lead { grid-row: 1 / span 2; }
	.fn-report:not(.fn-report--lead) { display: grid; grid-template-columns: 11rem 1fr; gap: 20px; align-items: start; padding-top: 22px; border-top: 1.5px solid var(--fn-ink); }
	.fn-report:not(.fn-report--lead) .fn-label { margin-top: 0; }
	.fn-report:not(.fn-report--lead) .fn-report__shot { aspect-ratio: 4 / 3; box-shadow: 3px 4px 0 rgba(28, 38, 24, .16); }
}

/* The software workshop */
.fn-workshop { display: grid; gap: 32px; align-items: center; }
.fn-workshop p { max-width: 36ch; font-size: 19px; }
.fn-workshop .fn-label { margin: 0 0 10px; }
.fn-note {
	position: relative; justify-self: center; width: min(100%, 21rem); padding: 30px 28px 24px; background: #E6D7B4;
	transform: rotate(2.2deg); box-shadow: 3px 6px 14px rgba(28, 38, 24, .2);
	-webkit-mask: var(--fn-torn-bottom) bottom / 500px 8px repeat-x, linear-gradient(#000 0 0) top / 100% calc(100% - 7px) no-repeat;
	mask: var(--fn-torn-bottom) bottom / 500px 8px repeat-x, linear-gradient(#000 0 0) top / 100% calc(100% - 7px) no-repeat;
}
.fn-note::before { content: ""; position: absolute; top: -9px; left: 50%; width: 92px; height: 24px; translate: -50% 0; rotate: -3deg; background: rgba(169, 59, 28, .28); }
.fn-note ul { list-style: none; margin: 0; padding: 0; }
.fn-note a {
	display: flex; align-items: center; gap: 12px; min-height: var(--ha-tap); font-family: var(--fn-hand); font-size: 27px; font-weight: 600;
	color: var(--fn-ink); text-decoration: none; border-bottom: 1px solid rgba(28, 38, 24, .18);
}
.fn-note li:last-child a { border-bottom: 0; }
.fn-note a::before { content: "\2713"; display: grid; place-items: center; flex: none; width: 22px; height: 22px; border: 2px solid var(--fn-ink); font-family: var(--fn-display); font-size: 17px; font-weight: 800; line-height: 1; color: var(--fn-rust); }
.fn-note a:hover { color: var(--fn-rust); }
@media (min-width: 820px) { .fn-workshop { grid-template-columns: 1.4fr 1fr; } }

/* The practice: a label in the margin, the words beside it */
.fn-practice { display: grid; gap: 8px 40px; border-top: 1.5px solid var(--fn-ink); padding-top: 22px; margin-top: clamp(48px, 7vw, 88px); }
.fn-practice > .fn-label { margin: 0; }
.fn-practice h2 { max-width: 15ch; }
.fn-practice p { max-width: 46ch; }
@media (min-width: 900px) { .fn-practice { grid-template-columns: 220px minmax(0, 1fr); } }

/* Ask me */
.fn-ask h2 { font-size: clamp(36px, 6.4vw, 84px); letter-spacing: -0.04em; }
.fn-ask h2 span { display: block; color: #F0A486; }
.fn-ask p { max-width: 44ch; color: #E3DCC6; margin: 1.2rem 0 1.4rem; font-size: 19px; }

/* About */
.fn-about { display: grid; gap: 36px; align-items: start; }
.fn-about h1 { font-size: clamp(44px, 7vw, 84px); line-height: .95; letter-spacing: -0.04em; margin: 0 0 1.4rem; max-width: 10ch; }
.fn-about__lede { font-size: clamp(21px, 2.4vw, 27px); line-height: 1.3; font-weight: 600; max-width: 26ch; }
.fn-about p { max-width: 46ch; }
.fn-about .fn-note a::after { content: none; }
.fn-about .fn-note span { display: flex; align-items: center; gap: 12px; min-height: 44px; font-family: var(--fn-hand); font-size: 28px; font-weight: 600; }
.fn-about .fn-note span::before { content: "\2713"; display: grid; place-items: center; width: 22px; height: 22px; border: 2px solid var(--fn-ink); font-family: var(--fn-display); font-size: 17px; font-weight: 800; color: var(--fn-rust); }
.fn-portrait { margin: 0 auto; max-width: 400px; rotate: 1.5deg; border: 1.5px solid var(--fn-ink); background: #F3ECDA; padding: 12px 12px 14px; box-shadow: 5px 7px 0 rgba(28, 38, 24, .16); }
.fn-portrait img { width: 100%; height: auto; display: block; }
.fn-about__art .fn-note { margin: -34px auto 0; position: relative; rotate: -3deg; transform: none; }
@media (min-width: 820px) { .fn-about { grid-template-columns: 1.2fr 1fr; } }

/* ======================================================================
 * Inner pages: a page head, a margin column, ledgers instead of cards
 * ==================================================================== */
.fn-pagehead { display: grid; gap: 14px 40px; align-items: end; padding-bottom: clamp(24px, 3vw, 36px); border-bottom: 1.5px solid var(--fn-ink); margin-bottom: clamp(8px, 2vw, 20px); }
.fn-pagehead h1 { font-size: clamp(46px, 8vw, 104px); line-height: .92; letter-spacing: -0.045em; margin: 0; }
.fn-pagehead .fn-label { margin: 0; }
.fn-pagehead .fn-label a { color: inherit; }
.fn-pagehead__intro { font-size: clamp(18px, 1.8vw, 21px); line-height: 1.4; max-width: 40ch; margin: 0; color: var(--fn-ink-soft); }
@media (min-width: 900px) { .fn-pagehead { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } .fn-pagehead .fn-label { grid-column: 1 / -1; } }
.fn-closing { margin: clamp(32px, 5vw, 56px) 0 0; font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; line-height: 1.3; max-width: 34ch; letter-spacing: -0.01em; }
.fn-closing .fn-link, .fn-pagehead__intro .fn-link { padding-block: 0; color: var(--fn-rust) !important; }
main a.fn-link:hover { color: var(--fn-rust-deep) !important; }

/* What I do: group in the margin, services as a ledger */
.fn-sheet { display: grid; gap: 12px 40px; padding-block: clamp(28px, 4vw, 48px); border-bottom: 1.5px solid var(--fn-ink); scroll-margin-top: 16px; }
.fn-margin h2 { font-size: clamp(26px, 2.6vw, 34px) !important; line-height: 1.05; margin: 0 0 .5rem; }
.fn-margin p { margin: 0; color: var(--fn-ink-soft); font-size: 16.5px; line-height: 1.4; max-width: 24ch; }
.fn-numeral { display: block; font-family: var(--fn-mono); font-size: 15px; color: var(--fn-rust); margin-bottom: 6px; }
.fn-rows { margin: 0; }
.fn-rows__row { display: grid; gap: 2px 28px; padding: 14px 0; border-top: 1px dashed var(--fn-line); scroll-margin-top: 24px; }
.fn-rows__row:first-child { border-top: 0; padding-top: 4px; }
.fn-rows dt { font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.fn-rows dd { margin: 0; color: var(--fn-ink-soft); }
.fn-rows dd a { color: var(--fn-rust); }
.fn-rows__row:target dt { text-decoration: underline; text-decoration-color: var(--fn-rust); text-decoration-thickness: 3px; text-underline-offset: .2em; }
@media (min-width: 640px) { .fn-rows__row { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: baseline; } }
@media (min-width: 900px) { .fn-sheet { grid-template-columns: 300px minmax(0, 1fr); } .fn-margin { position: sticky; top: 24px; align-self: start; } }

/* Work: entries in a logbook */
.fn-entry { position: relative; display: grid; gap: 10px 36px; padding-block: clamp(24px, 3.4vw, 40px); border-bottom: 1.5px solid var(--fn-ink); }
.fn-entry__no { margin: 0; line-height: 1.6; }
.fn-entry h2 { font-size: clamp(32px, 4.8vw, 62px); line-height: .98; letter-spacing: -0.04em; margin: 0 0 .5rem; }
.fn-entry h2 a { text-decoration: none; }
.fn-entry h2 a::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.fn-entry:hover h2 a { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: .12em; text-decoration-color: var(--fn-rust); }
.fn-entry:focus-within { outline: 3px solid var(--fn-rust); outline-offset: 4px; }
.fn-entry h2 a:focus-visible { outline: none; }
.fn-entry__text p { margin: 0; color: var(--fn-ink-soft); max-width: 36ch; }
.fn-entry__shot { aspect-ratio: 16 / 10; overflow: hidden; border: 1.5px solid var(--fn-ink); box-shadow: 4px 5px 0 rgba(28, 38, 24, .16); max-width: 26rem; }
.fn-entry__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
@media (min-width: 900px) {
	.fn-entry { grid-template-columns: 170px minmax(0, 1fr) 22rem; align-items: center; }
	.fn-entry:nth-child(odd) .fn-entry__shot { rotate: 1deg; } .fn-entry:nth-child(even) .fn-entry__shot { rotate: -1.2deg; }
}

/* A project */
.fn-project .fn-pagehead h1 { font-size: clamp(40px, 6.4vw, 84px); }
.fn-project__grid { display: grid; gap: 32px 56px; margin-top: clamp(24px, 4vw, 44px); align-items: start; }
.fn-project__shot { margin: 0; }
.fn-project__shot img { width: 100%; height: auto; display: block; border: 1.5px solid var(--fn-ink); box-shadow: 5px 6px 0 rgba(28, 38, 24, .16); }
.fn-project__shot figcaption { margin-top: 12px; }
.fn-project__notes section { padding: 18px 0; border-top: 1px dashed var(--fn-line); }
.fn-project__notes section:first-child { border-top: 0; padding-top: 0; }
.fn-project__notes h2 { font-family: var(--fn-mono); font-weight: 700; font-size: 15px !important; letter-spacing: .08em; text-transform: uppercase; color: var(--fn-rust); margin: 0 0 .5rem; font-variation-settings: normal; }
.fn-project__notes p, .fn-project__notes ul { margin: 0; }
.fn-project__notes ul { padding-left: 1.1em; }
.fn-project__notes li + li { margin-top: .45em; }
.fn-project__next { margin-top: clamp(40px, 6vw, 72px); padding-top: 20px; border-top: 1.5px solid var(--fn-ink); }
.fn-project__next .fn-label { margin: 0 0 6px; }
.fn-project__links { margin: 14px 0 1.6rem; display: grid; gap: 28px 40px; }
.fn-project__links a { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 2px 20px; align-content: center; text-decoration: none; }
.fn-project__thumb { grid-row: span 2; aspect-ratio: 16 / 10; overflow: hidden; border: 1.5px solid var(--fn-ink); box-shadow: 3px 4px 0 rgba(28, 38, 24, .16); }
.fn-project__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.fn-project__links .fn-label { margin: 0; align-self: end; font-size: 12.5px !important; }
.fn-project__links strong { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; align-self: start; }
.fn-project__links a:hover strong { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .15em; text-decoration-color: var(--fn-rust); }
@media (min-width: 720px) { .fn-project__links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .fn-project__grid { grid-template-columns: 7fr 5fr; } .fn-project__shot { position: sticky; top: 24px; } }

/* Software: a catalogue, one line each */
.fn-item { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 18px; padding-block: 24px; border-bottom: 1.5px solid var(--fn-ink); scroll-margin-top: 24px; }
.fn-item__icon { width: 56px; height: 56px; grid-row: span 2; }
.fn-item h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1; letter-spacing: -0.035em; margin: 0; align-self: center; }
.fn-item h2 a { text-decoration: none; }
.fn-item:hover h2 a { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .15em; text-decoration-color: var(--fn-rust); }
.fn-item__line { margin: 0; color: var(--fn-ink-soft); grid-column: 2; max-width: 40ch; }
.fn-item__terms { margin: 6px 0 0; grid-column: 2; }
.fn-item__go { margin: 0; grid-column: 2; }
@media (min-width: 900px) {
	.fn-item { grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 1.2fr) 13rem; align-items: center; gap: 4px 28px; }
	.fn-item__icon { width: 64px; height: 64px; grid-row: span 2; }
	.fn-item h2 { grid-row: span 2; }
	.fn-item__line { grid-column: 3; grid-row: span 2; }
	.fn-item__terms { grid-column: 4; margin: 0; align-self: end; }
	.fn-item__go { grid-column: 4; align-self: start; }
}

/* Contact: a form to fill in, not a stack of boxes */
.fn-contact__grid { display: grid; gap: 36px 72px; align-items: start; }
.fn-contact h1 { font-size: clamp(52px, 9vw, 112px); line-height: .9; letter-spacing: -0.05em; margin: 0 0 1.2rem; }
.fn-contact__email { margin: 1.8rem 0 0; display: grid; gap: 2px; }
.fn-contact__email a { font-size: clamp(21px, 2.4vw, 28px); font-weight: 700; color: var(--fn-rust); overflow-wrap: anywhere; display: inline-flex; align-items: center; min-height: var(--ha-tap); }
.fn-contact__note { font-family: var(--fn-hand); font-size: 30px; font-weight: 600; rotate: -2deg; margin: 1.4rem 0 0; transform-origin: left; }
.fn-contact .ha-form { gap: 22px; }
.fn-contact .ha-field label { font-family: var(--fn-mono); font-weight: 400; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--fn-ink-soft); }
.fn-contact .ha-field input, .fn-contact .ha-field select, .fn-contact .ha-field textarea {
	background-color: transparent; border: 0; border-bottom: 1.5px solid var(--fn-ink); border-radius: 0; padding-inline: 2px; font-size: 20px; font-weight: 500;
}
.fn-contact .ha-field textarea { background-image: repeating-linear-gradient(transparent 0 calc(1.6em - 1px), var(--fn-line) calc(1.6em - 1px) 1.6em); background-attachment: local; line-height: 1.6; border-bottom: 0; padding-block: 0; min-height: 9.6em; }
.fn-contact .ha-field :is(input, select, textarea):focus-visible { outline: 0; border-bottom-color: var(--fn-rust); box-shadow: 0 3px 0 var(--fn-rust); }
.fn-contact .ha-form__submit { width: auto; padding-inline: 28px; }
@media (min-width: 900px) { .fn-contact__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } .fn-contact header { position: sticky; top: 24px; } }
.fn-item__icon { filter: brightness(0) saturate(100%) invert(11%) sepia(14%) saturate(1100%) hue-rotate(60deg); }

/* Work page filter: plain words, not pills */
.fn-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; padding-block: 6px; border-bottom: 1px dashed var(--fn-line); }
.fn-filter .fn-label { margin: 0; }
.fn-filter button { font: inherit; font-weight: 700; color: var(--fn-ink-soft); background: none; border: 0; padding: 0; min-height: var(--ha-tap); cursor: pointer; }
.fn-filter button span { font-family: var(--fn-mono); font-weight: 400; font-size: 13px; vertical-align: super; }
.fn-filter button:hover { color: var(--fn-ink); }
.fn-filter button[aria-pressed="true"] { color: var(--fn-ink); text-decoration: underline; text-decoration-color: var(--fn-rust); text-decoration-thickness: 3px; text-underline-offset: .35em; }
.fn-entry[hidden] { display: none; }

/* Site links on reports; the availability note; the career ledger on About */
.fn-entry__site { margin: .5rem 0 0 !important; position: relative; z-index: 2; }
.fn-entry__site .fn-link { color: var(--fn-rust) !important; padding-block: 10px; font-size: 17px; }
.fn-pagehead__visit { margin: 1rem 0 0; }
.fn-hero__note { font-family: var(--fn-hand); font-size: clamp(25px, 2.6vw, 31px); font-weight: 600; line-height: 1.1; margin: 1.6rem 0 0; rotate: -1.5deg; transform-origin: left; }
.fn-hero__note a { color: var(--fn-rust); display: inline-block; padding-block: 8px; }
.fn-before { display: grid; gap: 12px 40px; align-items: end; margin-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(20px, 3vw, 32px); border-bottom: 1.5px solid var(--fn-ink); }
.fn-before h2 { font-size: clamp(36px, 5.6vw, 72px); line-height: .95; letter-spacing: -0.04em; margin: 0; }
@media (min-width: 900px) { .fn-before { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.fn-margin h3 { font-size: clamp(26px, 2.6vw, 34px) !important; line-height: 1.05; margin: 0 0 .5rem; }
.fn-rows--figures dt { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
@media (min-width: 640px) { .fn-rows--figures .fn-rows__row { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); } }
@media (prefers-reduced-motion: no-preference) { .fn-hero__note { animation: fn-rise .7s .32s var(--ha-ease) both; } }
