/* Bart Cortooms, portfolio. Direction C: a typographic index.
   One column on one left edge, one typeface in two weights, ordinary reading sizes on a 28px baseline
   (14px half-steps). Hierarchy by weight, colour and space; deep green only for links and focus. */
@font-face{font-family:"Hanken Grotesk";src:url("fonts/hanken-grotesk-regular.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Hanken Grotesk";src:url("fonts/hanken-grotesk-semibold.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap}
/* Metric-matched fallback so the swap does not move the text */
@font-face{font-family:"Hanken Fallback";src:local("Arial"),local("Liberation Sans"),local("Arimo"),local("Helvetica");size-adjust:98.9%;ascent-override:101.1%;descent-override:30.6%;line-gap-override:0%}

:root{
  color-scheme:light dark;
  --paper:#f4f2e9;--text:#1c1e1a;--muted:#585c54;--link:#173f30;--line:#d3d4ca;
  --sans:"Hanken Grotesk","Hanken Fallback","Helvetica Neue",Arial,sans-serif;
  --gutter:48px;--measure:38.5rem;
}
@media(prefers-color-scheme:dark){:root{
  --paper:#141613;--text:#e8e6de;--muted:#a3a69d;--link:#9fcbb2;--line:#33362f;
}}
*{box-sizing:border-box}
html{overflow-x:clip;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--text);font:400 18px/28px var(--sans);font-feature-settings:"kern","lnum";-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
h1,h2,h3,p{margin:0;font-size:inherit;line-height:inherit;font-weight:inherit}
p{text-wrap:pretty}
a{color:var(--link);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px;text-decoration-color:color-mix(in srgb,currentColor 38%,transparent)}
a:hover{text-decoration-color:currentColor}
a:focus-visible{outline:3px solid var(--link);outline-offset:3px;border-radius:1px}

.page{width:min(1040px,calc(100% - 2*var(--gutter)));margin:0 auto;padding:84px 0 56px}
main,footer{max-width:var(--measure)}
h1{font-weight:600;font-size:24px;line-height:28px;letter-spacing:-.01em}
.intro{margin-bottom:56px}
.intro nav{display:flex;flex-wrap:wrap;column-gap:24px;margin-top:4px;font-size:16px;line-height:24px}

/* Main projects: name and category on one line, then description and links */
.project{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:14px}
.project+.project{margin-top:42px}
.project h2{font-weight:600}
.category{color:var(--muted);font-size:16px}
.project>p:not(.category){flex-basis:100%}
.links{display:flex;flex-wrap:wrap;column-gap:24px}

/* Quieter projects: one rule, smaller steps */
.quiet{margin-top:56px;padding-top:27px;border-top:1px solid var(--line)}
.quiet article{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:12px;font-size:16px;line-height:24px}
.quiet article+article{margin-top:16px}
.quiet h3{font-weight:600}
.quiet h3 a{color:var(--text)}
.quiet p{flex-basis:100%;color:var(--muted)}
.quiet .status{flex-basis:auto}

footer{display:flex;flex-wrap:wrap;column-gap:28px;row-gap:4px;margin-top:56px;padding-top:27px;border-top:1px solid var(--line);font-size:16px;line-height:24px;color:var(--muted)}
footer .name{order:-1}

.skip-link{position:absolute;top:-100px;left:16px;padding:10px 14px;background:var(--text);color:var(--paper);z-index:5}
.skip-link:focus{top:10px}
main:focus{outline:none}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

@media(max-width:699px){
  :root{--gutter:20px}
  body{font-size:17px;line-height:26px}
  .page{padding:44px 0 40px}
  h1{font-size:22px;line-height:26px}
  .intro{margin-bottom:40px}
  .intro nav{column-gap:20px}
  .project+.project{margin-top:34px}
  .category{font-size:15px}
  .links{column-gap:20px}
  .quiet{margin-top:44px;padding-top:23px}
  .quiet article+article{margin-top:14px}
  footer{margin-top:44px;padding-top:23px;flex-direction:column;row-gap:6px}
}

/* Privacy page */
.masthead{max-width:var(--measure);margin-bottom:56px}
.masthead a{font-weight:600;color:var(--text);text-decoration:none}
.masthead a:hover{text-decoration:underline;text-decoration-color:currentColor}
.privacy h1{font-size:22px;margin-bottom:28px}
.privacy p{margin-bottom:20px}
.privacy p a{overflow-wrap:anywhere}
.privacy-controls{margin-top:28px;padding-top:27px;border-top:1px solid var(--line)}
.privacy-controls p{margin:12px 0 20px;font-size:16px;line-height:24px;color:var(--muted);max-width:34rem}
.privacy-controls form{margin:0}
.privacy-controls button{display:block;max-width:100%;font:600 16px/24px var(--sans);text-align:left;border:1px solid var(--text);background:var(--text);color:var(--paper);padding:9px 16px;cursor:pointer;border-radius:2px}
.privacy-controls form:last-child button{background:transparent;color:var(--text)}
.privacy-controls button:hover{text-decoration:underline;text-underline-offset:3px}
.privacy-controls button:focus-visible{outline:3px solid var(--link);outline-offset:3px}
@media(max-width:699px){.masthead{margin-bottom:40px}.privacy-controls button{width:100%}}

/* The paper relief (sheet.*.js). None of these classes exist until the script has started:
   without it the page is exactly the page above. */
.sheet{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:-1;display:none}
/* narrow screens: a project name with a piece becomes a disclosure button that opens a space below the block */
.sheet-open{font:inherit;color:inherit;letter-spacing:inherit;line-height:inherit;background:none;border:0;padding:0;margin:0;cursor:pointer;text-align:left;-webkit-tap-highlight-color:transparent;
  text-decoration:underline dotted;text-decoration-thickness:1px;text-underline-offset:4px;text-decoration-color:color-mix(in srgb,currentColor 55%,transparent)}
.sheet-open:focus-visible{outline:3px solid var(--link);outline-offset:3px;border-radius:1px}
.sheet-space{flex-basis:100%;height:0;overflow:hidden;touch-action:pan-y;transition:height .55s cubic-bezier(.3,.7,.2,1)}
@media(prefers-reduced-motion:reduce){.sheet-space{transition:none}}
