/* Hallmark · v2.0.0 · Allie Counts portfolio, direction 3 chart folders (custom) · copy: verbatim · nav: centered signature between two links · footer: riso shape pattern with one line · hero: two riso blooms bleeding off the edges around a centered serif headline · signature: colored file-folder tabs like a patient chart, riso-printed paper shapes with grain and misregistration */
/* critique: one loud device (the folder tabs) carries the color; everything inside a folder sits on a paper sheet so long lists stay readable. Risk: content behind tabs is hidden, so the index below lists every item and JS-off shows every folder. */

@font-face { font-family: "Fraunces"; src: url("assets/fonts/fraunces.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("assets/fonts/figtree.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "Kalam"; src: url("assets/fonts/kalam-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #fbfaf8;
  --ink: #141210;
  --soft: #55504a;
  --hair: #e4e1dc;
  --paper: #fffdf9;
  --red: #ba0c2f;
  --red-lit: #d7344f;
  --sea: #1f63b4;
  --sea-deep: #164a88;
  --sky: #8fcdf2;
  --gold: #efb21a;
  --gold-lit: #f7c94f;
  --pink: #f29bb8;
  --pink-deep: #c4466f;
  --navy: #17305a;
  --shade: rgba(20, 18, 16, 0.14);
  --rule-on-color: var(--rule-on-color);
  --need-bg: #fff3c4;
  --need-ink: #6b4e00;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Figtree", system-ui, sans-serif;
  --hand: "Kalam", cursive;
  --wrap: 1180px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
html, body { overflow-x: clip; }
body { background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
ul { list-style: none; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

a:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; transition: none; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--paper); padding: 12px 16px; border-radius: 10px; z-index: 20; }
.skip:focus-visible { top: 16px; }

/* riso print: grain plus a misregistered second ink */
.riso { position: relative; display: block; aspect-ratio: 1; }
.riso svg { position: absolute; inset: 0; width: 100%; height: 100%; filter: url(#grain); }
.riso .r1 { color: var(--i1, var(--paper)); }
.riso .r2 { color: var(--i2, var(--sky)); mix-blend-mode: multiply; transform: translate(4%, 3%); transition: transform .5s var(--ease); }

/* hero */
.hero { position: relative; overflow: hidden; padding: 28px 0 120px; }
.nav { position: relative; z-index: 2; display: flex; justify-content: center; align-items: center; gap: 48px; font-size: 16px; }
.nav a { text-decoration: none; }
.nav a:not(.sig):hover { text-decoration: underline; text-underline-offset: 5px; }
.sig { font: 700 34px/1 var(--hand); color: var(--red); }
.hero-text { position: relative; z-index: 2; max-width: 820px; margin: 104px auto 0; padding: 0 24px; text-align: center; }
.hero h1 { font: 400 clamp(38px, 5.2vw, 64px)/1.06 var(--serif); letter-spacing: -0.02em; text-wrap: balance; }
.hero-text p { margin: 28px auto 0; max-width: 60ch; color: var(--soft); font-size: 18px; text-wrap: pretty; }
.bloom { position: absolute; z-index: 1; width: clamp(220px, 30vw, 420px); }
.bloom-l { left: -9%; top: 34%; rotate: -14deg; --i1: var(--sky); --i2: var(--sea); }
.bloom-r { right: -8%; top: 4%; rotate: 12deg; --i1: var(--red); --i2: var(--gold); }
.bloom .r2 { mix-blend-mode: normal; }

/* tabs and folders */
.portfolio { padding-bottom: 104px; }
.tabs { display: flex; gap: 8px; padding-left: 28px; position: relative; z-index: 3; }
.tab {
  padding: 16px 24px 20px; border-radius: 18px 18px 0 0; text-decoration: none; white-space: nowrap;
  font: 500 15px/1 var(--sans); color: var(--paper); margin-bottom: -8px;
  transform: translateY(8px); filter: saturate(.8) brightness(.96);
  transition: transform .3s var(--ease), filter .3s ease;
}
.tab:hover { transform: translateY(0); }
.tab[aria-selected="true"] { transform: translateY(0); filter: none; }
.tab-sea { background: var(--sea); }
.tab-red { background: var(--red); }
.tab-sky { background: var(--sky); color: var(--ink); }
.tab-gold { background: var(--gold); color: var(--ink); }
.tab-pink { background: var(--pink); color: var(--ink); }
.tab-navy { background: var(--navy); }

.folder {
  position: relative; z-index: 2; padding: 52px 56px 56px; border-radius: 0 30px 30px 30px;
  color: var(--paper); box-shadow: 0 30px 50px -36px var(--shade); scroll-margin-top: 80px;
}
.folder + .folder { margin-top: 28px; }
.js .folder { display: none; }
.js .folder.open { display: block; animation: slide .45s var(--ease); }
.js .folder + .folder { margin-top: 0; }
@keyframes slide { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.tone-sea { background: var(--sea); }
.tone-red { background: var(--red); --i1: var(--gold); --i2: var(--red-lit); }
.tone-sky { background: var(--sky); color: var(--ink); --i1: var(--paper); --i2: var(--sea); }
.tone-gold { background: var(--gold); color: var(--ink); --i1: var(--paper); --i2: var(--red); }
.tone-pink { background: var(--pink); color: var(--ink); --i1: var(--paper); --i2: var(--pink-deep); }
.tone-navy { background: var(--navy); --i1: var(--gold); --i2: var(--sky); }
.tone-navy .riso .r2, .tone-red .riso .r2 { mix-blend-mode: normal; }

.folder-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 36px; }
.folder-title { font: 400 clamp(40px, 5vw, 60px)/1 var(--serif); letter-spacing: -0.02em; }
.folder-icon { width: 150px; flex: none; margin: -24px -8px -24px 0; }
.folder:hover .riso .r2 { transform: translate(1%, 1%); }

/* about */
#about .folder-title { margin-bottom: 28px; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.about-text p { font-size: 18px; max-width: 58ch; }
.about-text p + p { margin-top: 16px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--rule-on-color); }
.facts dt { font-size: 14px; opacity: .8; }
.facts dd { font: 400 21px/1.25 var(--serif); margin-top: 2px; }
.about-photo { align-self: end; margin: 0 0 -56px; display: flex; justify-content: center; }
.about-photo img { width: min(100%, 340px); height: auto; }

/* paper sheet inside the folder */
.items, .certs-sheet { background: var(--paper); color: var(--ink); border-radius: 22px; padding: 8px 40px; }
.item { padding: 32px 0; scroll-margin-top: 90px; }
.item + .item { border-top: 1px solid var(--hair); }
.item-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 24px; flex-wrap: wrap; }
.item h3, .cert h3, .skills h3 { font: 400 28px/1.15 var(--serif); letter-spacing: -0.01em; }
.when { color: var(--soft); font-size: 15px; white-space: nowrap; }
.org { color: var(--soft); margin-top: 4px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.meta li { font-size: 14px; font-weight: 500; padding: 4px 12px; border-radius: 99px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--hair); }
.bullets { margin-top: 16px; display: grid; gap: 8px; max-width: 72ch; }
.bullets li { position: relative; padding-left: 24px; }
.bullets li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--red)); }
.tone-sky { --dot: var(--sea); }
.tone-gold { --dot: var(--gold); }
.tone-pink { --dot: var(--pink-deep); }
.rows { display: grid; gap: 12px; margin-top: 16px; max-width: 76ch; }
.rows div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; }
.rows dt { color: var(--soft); font-size: 15px; padding-top: 1px; }
.need { margin-top: 16px; display: inline-block; font-size: 15px; padding: 8px 12px; border-radius: 8px; background: var(--need-bg); color: var(--need-ink); }

.docs { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.doc { display: inline-flex; align-items: center; padding: 12px 20px; border-radius: 99px; font-size: 15px; font-weight: 500; text-decoration: none; background: var(--ink); color: var(--paper); transition: background-color .2s ease; }
.doc:hover { background: var(--red); }
.doc-dl { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.doc-dl:hover { background: var(--bg); }
.doc:active, .tab:active, .thumb:active { transform: translateY(1px); }
.nav a:active, .ix a:active, .contact-links a:active { opacity: .7; }

/* certificates */
.certs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cert { background: var(--paper); color: var(--ink); border-radius: 22px; padding: 16px 16px 28px; scroll-margin-top: 90px; }
.cert h3 { font-size: 23px; margin: 20px 12px 0; }
.cert .org, .cert .meta, .cert .docs { margin-left: 12px; margin-right: 12px; }
.thumb { display: block; border-radius: 14px; overflow: hidden; background: var(--bg); aspect-ratio: 900 / 680; }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.thumb { transition: box-shadow .2s ease; }
.thumb:hover { box-shadow: 0 0 0 3px var(--hair); }
.skills { background: var(--paper); color: var(--ink); border-radius: 22px; padding: 32px 36px; scroll-margin-top: 90px; }
.skills .rows { gap: 20px; margin-top: 20px; }
.skills .rows div { grid-template-columns: minmax(0, 1fr); gap: 2px; }

/* index */
.contents { padding: 0 0 104px; scroll-margin-top: 24px; }
.contents h2, .contact h2 { font: 400 clamp(34px, 4vw, 48px)/1.1 var(--serif); letter-spacing: -0.02em; margin-bottom: 36px; }
.ix { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 48px; }
.ix h3 { font: 600 17px/1.3 var(--sans); padding-bottom: 12px; border-bottom: 2px solid var(--ink); margin-bottom: 12px; }
.ix h3 a { text-decoration: none; }
.ix li { padding: 8px 0; font-size: 16px; color: var(--soft); }
.ix li a { text-decoration: underline; text-decoration-color: var(--soft); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.ix li a:hover { color: var(--ink); text-decoration-color: currentColor; }
.ix-doc { margin-left: 4px; }

/* contact */
.contact { padding: 0 0 112px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 16px 48px; font: 400 clamp(24px, 3.4vw, 40px)/1.2 var(--serif); }
.contact-links a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; text-decoration-color: var(--red); overflow-wrap: anywhere; }
.contact-links a:hover { color: var(--red); }

/* footer */
.foot { overflow: hidden; padding-bottom: 40px; }
.pattern { display: flex; gap: 20px; justify-content: center; margin-bottom: 28px; }
.pattern .riso { width: 88px; flex: none; }
.p-0 { --i1: var(--red); --i2: var(--gold); }
.p-1 { --i1: var(--sky); --i2: var(--sea); }
.p-2 { --i1: var(--gold); --i2: var(--red); }
.p-3 { --i1: var(--pink); --i2: var(--pink-deep); }
.pattern .r2 { mix-blend-mode: normal; }
.foot-line { text-align: center; color: var(--soft); font-size: 15px; }

@media (max-width: 900px) {
  .ix { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .certs { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero { padding-bottom: 152px; }
  .nav { gap: 28px; font-size: 15px; }
  .hero-text { margin-top: 152px; }
  .hero-text p { font-size: 16px; }
  .bloom { width: 150px; }
  .bloom-l { left: -14%; top: auto; bottom: 8px; }
  .bloom-r { right: -8%; top: 64px; }
  .tabs { padding-left: 0; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
  .tab { padding: 12px 16px; font-size: 14px; border-radius: 99px; margin-bottom: 0; transform: none; }
  .tab:hover { transform: none; }
  .tab[aria-selected="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }
  .folder { padding: 32px 20px 24px; border-radius: 22px; }
  .folder-top { margin-bottom: 24px; }
  .folder-icon { width: 92px; margin: -12px 0; }
  .about-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .about-text p { font-size: 16px; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .about-photo { margin-bottom: -24px; }
  .about-photo img { width: 62%; }
  .items { padding: 4px 24px; }
  .item { padding: 28px 0; }
  .item h3, .skills h3 { font-size: 24px; }
  .when { white-space: normal; }
  .rows div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .skills { padding: 28px 24px; }
  .ix { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .pattern .riso { width: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tab, .riso .r2, .thumb, .doc { transition: none; }
  .js .folder.open { animation: none; }
}
