/* ==========================================================================
   Faisal Tamano Jr. · portfolio stylesheet
   Style: "Circuit Nouveau". A warm editorial notebook where Art Nouveau
   linework turns into circuit traces.
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face { font-family: "Fraunces"; src: url("../fonts/Fraunces-normal-100-900.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/Fraunces-italic-100-900.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/Newsreader-normal-200-800.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/Newsreader-italic-200-800.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/IBMPlexMono-normal-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/IBMPlexMono-normal-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/IBMPlexMono-normal-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  /* surfaces */
  --bg: #f3ead7;          /* parchment */
  --bg-2: #ebdfc6;        /* deeper parchment for tiles */
  --cream: #fbf6ea;
  /* ink */
  --ink: #2b1f19;         /* umber, 13.4:1 on bg */
  --ink-2: #5a463a;       /* secondary text, 7.4:1 */
  --muted: #6a5646;       /* labels, captions, 5.8:1 */
  --hair: #d9cbb0;        /* hairlines (decorative only) */
  /* roles (P1-2: every colour has one job) */
  --accent: #7d2e3a;      /* maroon: emphasis, in-progress, hover, focus */
  --ok: #4a5731;          /* olive: complete, availability */
  --ornament: #c48a2c;    /* mustard: illustration only, never text */
  --ornament-2: #56643a;  /* leaves */
  --blush: #efcdbf;

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --text: "Newsreader", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  --page: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* Paper grain, kept very subtle so it never hurts contrast (P2-8) */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: .1; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .15 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .25em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
::selection { background: var(--blush); color: var(--ink); }
h1, h2, h3 { font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 0; font-weight: 380; letter-spacing: -.02em; margin: 0; }
p { margin: 0 0 1em; text-wrap: pretty; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--cream); padding: 10px 14px; border-radius: 4px; text-decoration: none; }
.skip:focus { top: 12px; color: var(--cream); }

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }

/* Mono micro-labels: min 12px, tracking capped at .12em (P1-1) */
.label { font: 500 .75rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.muted { color: var(--muted); }
.caption { font: italic 400 .95rem/1.45 var(--text); color: var(--ink-2); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Header ---------- */
.mast { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--hair); }
.wordmark { font: italic 400 1.3rem/1 var(--display); font-variation-settings: "SOFT" 100; text-decoration: none; justify-self: start; padding: 10px 0; }
.nav { display: flex; gap: 28px; }
.nav a { position: relative; text-decoration: none; padding: 12px 0; }
.nav a sup { position: absolute; top: 12px; left: 100%; margin-left: 2px; line-height: 0; font-size: .62rem; letter-spacing: 0; color: var(--muted); } /* P1-9 */
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--accent); }
.here { justify-self: end; display: flex; align-items: center; gap: 14px; margin: 0; color: var(--ink-2); }
.clock { white-space: nowrap; }
.menu-btn { display: none; }

/* Status pill */
.pill { display: inline-flex; align-items: center; gap: .55em; padding: .55em .9em; border: 1px solid currentColor; border-radius: 999px; white-space: nowrap; }
.pill::before { content: ""; width: .55em; height: .55em; border-radius: 50%; background: currentColor; animation: breathe 2.6s ease-in-out infinite; }
.pill[data-tone="ok"] { color: var(--ok); }
.pill[data-tone="accent"] { color: var(--accent); }
@keyframes breathe { 50% { opacity: .3; } }

/* ---------- Buttons & links ---------- */
.btn { display: inline-flex; align-items: center; gap: .6em; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--ink); color: var(--cream);
       font: 500 .8rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; transition: background .3s, transform .3s var(--ease); }
.btn:hover { background: var(--accent); color: var(--cream); transform: translateY(-2px); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--cream); }
.link { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-decoration-color: var(--muted); }
.link:hover { text-decoration-color: var(--accent); }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.618fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: start; padding: 56px 0 80px; }
.hero-text { padding-top: 46px; }  /* P2-4: eyebrow lines up with the arch keystone */
.eyebrow { color: var(--ink-2); margin: 0 0 22px; }
.hero h1 { font-size: clamp(3rem, 9vw, 8.4rem); line-height: .9; font-weight: 340; letter-spacing: -.035em; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; margin: 0 0 40px; }
.hero h1 em { color: var(--accent); font-weight: 300; }
.statement { font: 400 clamp(1.3rem, 2.1vw, 1.7rem)/1.45 var(--text); max-width: 31ch; margin: 0 0 36px; }
.statement em { color: var(--accent); }
.ctas { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; }

.aside { margin: 48px 0 0; padding-left: 16px; border-left: 1px solid var(--hair); max-width: 46ch; color: var(--ink-2); min-height: 3.2em; }
.aside b { font: 600 .75rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.aside i { font: 400 .75rem/1 var(--mono); font-style: normal; color: var(--muted); }

/* ---------- Arched portrait ---------- */
.arch { margin: 0; width: 100%; max-width: 440px; justify-self: end; padding-right: 34px; } /* padding keeps the star inside the grid (P0-4) */
.arch .frame { position: relative; aspect-ratio: 400 / 540; }
/* Photo clipped to the exact inner arch: r=160 inside a 400×540 frame, 12px inside the stroke (P2-1) */
.arch .photo { position: absolute; left: 10%; top: 7.407%; width: 80%; height: 92.593%; border-radius: 50% 50% 0 0 / 32% 32% 0 0; overflow: hidden; background: var(--bg-2); }
.arch .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.arch .ornament { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.star { position: absolute; right: -34px; top: 44%; width: 78px; padding: 0; border: 0; background: none; cursor: pointer; }
.star svg { display: block; width: 100%; height: auto; overflow: visible; transition: transform .6s var(--ease); }
.star:hover svg, .star:focus-visible svg { transform: rotate(45deg) scale(1.08); }
.arch figcaption { display: flex; gap: 12px; align-items: baseline; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--ink); }
.arch figcaption .label { white-space: nowrap; color: var(--muted); }

/* Vines draw themselves in once */
.ornament .vine { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 2.6s cubic-bezier(.6,.1,.2,1) .2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.float { animation: float 4.5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px); } }

/* ---------- Section heads ---------- */
.section { padding: 24px 0 56px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1.05; }
.section-head h2 em { color: var(--accent); }
.rule { height: 24px; margin: 16px 0 4px; }
.rule svg { width: 100%; height: 100%; display: block; }

/* ---------- Works rows ---------- */
.works { list-style: none; margin: 0; padding: 0; }
.work { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1.5fr) minmax(0, 1fr) 150px 128px 84px; gap: 24px; align-items: center;
        padding: 18px 0; border-bottom: 1px solid var(--hair); transition: background .3s, padding .3s var(--ease); }
.work:hover, .work:focus-within { background: var(--cream); padding-left: 14px; padding-right: 14px; }
.work h3 { font-size: 1.75rem; line-height: 1.08; margin: 0 0 4px; transition: color .3s; }
.work h3 a { text-decoration: none; }
.work h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* stretched link: the whole row is the target (P1-7) */
.work h3 a:focus-visible { outline: none; }
.work:has(h3 a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 4px; }
.work:hover h3, .work:focus-within h3 { color: var(--accent); }
.work p { margin: 0; color: var(--ink-2); line-height: 1.4; }
.work .idx, .work .year { color: var(--muted); }
.work .tech { color: var(--ink-2); }
.work .tech span + span::before { content: " · "; } /* separators are CSS, so screen readers skip them (P2-3) */
.work .year { text-align: right; white-space: nowrap; display: flex; justify-content: flex-end; gap: 8px; }
.work .year .go { display: inline-block; opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .3s var(--ease); color: var(--accent); }
.work:hover .year .go, .work:focus-within .year .go { opacity: 1; transform: none; }

/* Thumbnails: warm-toned, bloom into colour on hover/focus, or when scrolled to on touch */
.thumb { display: block; height: 76px; border-radius: 6px; overflow: hidden; background: var(--bg-2); transition: height .35s var(--ease); }
.work:hover .thumb, .work:focus-within .thumb { height: 92px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; filter: url(#warm-tone); transition: filter .7s ease; }
.work:hover .thumb img, .work:focus-within .thumb img, .thumb.in-view img { filter: none; }
.thumb.plate { display: grid; place-items: center; }
.thumb.plate span { font: italic 300 1.6rem/1 var(--display); color: var(--muted); }

/* Status tags */
.tag { display: inline-flex; align-items: center; gap: .5em; padding: .5em .8em; border: 1px solid currentColor; border-radius: 999px; white-space: nowrap;
       font: 500 .75rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.tag::before { content: ""; width: .5em; height: .5em; border-radius: 50%; background: currentColor; }
.tag.in-progress { color: var(--accent); }
.tag.in-progress::before { animation: breathe 2.6s ease-in-out infinite; }
.tag.complete { color: var(--ok); }
.tag.archived { color: var(--muted); }

/* Teaser row (P1-6): dithered title that un-dithers on hover/focus, but a real readable link */
.work.teaser { border-bottom-style: dashed; }
.work.teaser .dither { font: 400 1.35rem/1.1 var(--mono); letter-spacing: .04em; color: var(--muted); }
.work.teaser:hover .dither, .work.teaser:focus-within .dither { color: var(--accent); }
.work.teaser p { color: var(--ink-2); }
.work.teaser p strong { color: var(--accent); font-weight: 500; }
.view-all { display: flex; justify-content: flex-end; margin-top: 18px; }

/* ---------- Inner page header ---------- */
.page-head { padding: 64px 0 28px; display: grid; grid-template-columns: 1.618fr 1fr; gap: 48px; align-items: end; }
.page-head h1 { font-size: clamp(2.8rem, 7vw, 6rem); line-height: .95; font-weight: 340; letter-spacing: -.035em; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; }
.page-head h1 em { color: var(--accent); font-weight: 300; }
.page-head .lede { font-size: 1.25rem; line-height: 1.5; color: var(--ink-2); margin: 0; }

/* ---------- Works page extras ---------- */
.group { padding: 16px 0 40px; }
.group h2 { font-size: 1.9rem; }
.group .count { color: var(--muted); }
.links-inline { display: flex; gap: 14px; position: relative; z-index: 2; margin-top: 6px; flex-wrap: wrap; }
.links-inline a { font: 500 .75rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 8px 0; }
.drawer { margin-top: 8px; border: 1px dashed var(--muted); border-radius: 8px; }
.drawer summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; min-height: 44px; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary .t { font: italic 400 1.4rem/1.2 var(--display); }
.drawer summary .hint { color: var(--muted); }
.drawer[open] summary { border-bottom: 1px dashed var(--muted); }
.drawer ul { list-style: none; margin: 0; padding: 8px 20px 16px; }
.drawer li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.drawer li:last-child { border-bottom: 0; }
.drawer li b { font: 400 1.15rem/1.3 var(--display); font-variation-settings: "SOFT" 100; }
.drawer li span { color: var(--ink-2); grid-column: 1; }
.drawer li .meta { grid-column: 2; grid-row: 1 / span 2; align-self: center; text-align: right; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.618fr; gap: clamp(32px, 6vw, 80px); padding: 24px 0 56px; align-items: start; }
.about-photo { margin: 0; position: sticky; top: 24px; }
.about-photo img { width: 100%; border-radius: 200px 200px 6px 6px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
.about-photo figcaption { margin-top: 12px; display: flex; gap: 12px; }
.prose { max-width: 62ch; font-size: 1.15rem; line-height: 1.65; }
.prose h2 { font-size: 1.8rem; margin: 2.2em 0 .6em; }
.prose h2:first-child { margin-top: 0; }
.prose h2 em { color: var(--accent); }
.callout { background: var(--cream); border-left: 3px solid var(--ok); padding: 18px 22px; border-radius: 0 8px 8px 0; margin: 0 0 1.4em; }
.callout .label { color: var(--ok); display: block; margin-bottom: 6px; }
.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px 32px; margin: 0; }
.skills dt { margin-bottom: 6px; color: var(--muted); }
.skills dd { margin: 0; }
.voices { list-style: none; padding: 0; margin: 0; }
.voices li { padding: 10px 0 10px 16px; border-left: 1px solid var(--hair); margin-bottom: 8px; color: var(--ink-2); }
.voices b { font: 600 .75rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.voices i { font: 400 .75rem/1 var(--mono); font-style: normal; color: var(--muted); }

/* ---------- Résumé ---------- */
.resume { max-width: 860px; padding: 8px 0 64px; }
.resume section { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; padding: 28px 0; border-top: 1px solid var(--hair); }
.resume section > h2 { font: 500 .75rem/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.entry { margin-bottom: 22px; }
.entry:last-child { margin-bottom: 0; }
.entry-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: baseline; }
.entry h3 { font-size: 1.35rem; line-height: 1.2; }
.entry .where { color: var(--ink-2); font-style: italic; margin: 2px 0 8px; }
.entry ul { margin: 0; padding-left: 1.1em; }
.entry li { margin-bottom: 4px; }
.entry li::marker { color: var(--ornament); }

/* ---------- Writing ---------- */
.pinned { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 8px 0 56px; }
.pin { position: relative; display: flex; flex-direction: column; gap: 10px; background: var(--cream); padding: 22px; border-radius: 10px; border: 1px solid var(--hair);
       transition: transform .35s var(--ease), box-shadow .35s; }
.pin:hover, .pin:focus-within { transform: translateY(-4px); box-shadow: 0 14px 30px #2b1f1914; }
.pin h3 { font-size: 1.45rem; line-height: 1.15; }
.pin h3 a { text-decoration: none; }
.pin h3 a::after { content: ""; position: absolute; inset: 0; }
.pin p { color: var(--ink-2); margin: 0; }
.pin .label { color: var(--muted); margin-top: auto; }
.year-group h2 { font-size: 1.6rem; margin: 0 0 4px; color: var(--accent); font-style: italic; }
.posts { list-style: none; margin: 0 0 40px; padding: 0; }
.post { position: relative; display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 20px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.post a { text-decoration: none; font: 400 1.2rem/1.3 var(--display); font-variation-settings: "SOFT" 100; }
.post a::after { content: ""; position: absolute; inset: 0; }
.post:hover a, .post:focus-within a { color: var(--accent); }
.post .tags { color: var(--muted); text-align: right; }

/* ---------- Contact ---------- */
.contact-big { font: 340 clamp(1.6rem, 4.6vw, 3.6rem)/1.1 var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; letter-spacing: -.02em; word-break: break-word;
               text-decoration: none; display: inline-block; padding: 8px 0; border-bottom: 2px solid var(--accent); }
.contact-list { list-style: none; padding: 0; margin: 40px 0 0; border-top: 1px solid var(--hair); }
.contact-list li { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--hair); align-items: baseline; }
.contact-list a { font-size: 1.2rem; }

/* ---------- Footer ---------- */
.foot { padding: 8px 0 40px; }
.foot .rule { margin-bottom: 18px; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--ink-2); }
.foot nav { display: flex; gap: 8px 22px; flex-wrap: wrap; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Load-in ---------- */
.rise { animation: rise .9s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .work { grid-template-columns: 40px minmax(0, 1.5fr) 140px 120px 56px; }
  .work .tech { display: none; }
}
@media (max-width: 900px) {
  .hero, .page-head, .about-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 32px; }
  .hero-text { padding-top: 0; }
  .arch { justify-self: center; max-width: 360px; padding-right: 26px; }   /* portrait below the CTAs */
  .star { width: 60px; right: -22px; }
  .about-photo { position: static; max-width: 360px; }
  .pinned { grid-template-columns: 1fr; }
  .resume section { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 720px) {
  .mast { grid-template-columns: 1fr auto; grid-template-areas: "mark menu" "here here" "nav nav"; gap: 8px 12px; padding: 16px 0; }
  .wordmark { grid-area: mark; white-space: nowrap; }
  .menu-btn { grid-area: menu; }
  .here { grid-area: here; justify-self: start; }
  .nav { grid-area: nav; }
  .clock { display: none; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--ink);
              border-radius: 999px; background: transparent; color: var(--ink); font: 500 .75rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
  .nav { display: none; flex-direction: column; gap: 0; border-top: 1px solid var(--hair); padding-top: 8px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; min-height: 44px; }
  .nav a sup { position: static; margin-left: 6px; vertical-align: super; }
  .here .pill { font-size: .7rem; }
  .post { grid-template-columns: 1fr; gap: 4px; }
  .post .tags { text-align: left; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 640px) {
  /* Works rows become cards: thumb, index+year, title, description, tags, status */
  .work { grid-template-columns: 1fr auto; grid-template-areas: "thumb thumb" "idx year" "body body" "tech tech" "status status"; gap: 10px; padding: 22px 0; }
  .work:hover, .work:focus-within { padding-left: 0; padding-right: 0; background: none; }
  .work .thumb, .work:hover .thumb { grid-area: thumb; height: auto; aspect-ratio: 16 / 9; }
  .work .idx { grid-area: idx; } .work .year { grid-area: year; }
  .work > div { grid-area: body; } .work .tech { grid-area: tech; display: block; } .work .status { grid-area: status; }
  .work h3 { font-size: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .ornament .vine { stroke-dashoffset: 0; }
}
@media print {
  body::before, .mast, .foot, .no-print { display: none !important; }
  body { background: #fff; }
}
