:root { color-scheme: light; --paper: #f7f4eb; --ink: #39745e; --muted: #303730; --line: #cecfc0; --dark: #234538; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 system-ui, sans-serif; }
a { color: inherit; text-underline-offset: .28em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid #815333; outline-offset: 5px; }
.wrap { width: min(1120px, calc(100% - 96px)); margin-inline: auto; }
.top { min-height: 76px; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); }
.wordmark, nav a { text-decoration: none; }
.wordmark { font-weight: 650; display: flex; align-items: center; gap: 10px; }
.mark { font-size: 24px; line-height: 1; vertical-align: middle; }
nav { display: flex; gap: clamp(14px, 3vw, 38px); font-size: .89rem; }
nav a:hover { text-decoration: underline; }
.skip { position: absolute; left: 10px; top: -100px; padding: 10px; background: var(--paper); z-index: 2; }
.skip:focus { top: 10px; }
.intro { position: relative; isolation: isolate; padding: 72px 0 68px; }
.eyebrow, .counter { margin: 0; font: 600 .7rem/1.5 ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #8a513b; margin-right: 6px; }
h1, h2, h3 { font-family: Georgia, serif; font-weight: 400; margin: 0; }
h1 { font-size: clamp(3.2rem, 7.2vw, 6.55rem); letter-spacing: -.061em; line-height: .98; margin-block: 20px 24px; }
h1 em { color: #606c45; }
.hero-art { position: absolute; right: 2%; top: 80px; width: min(27%, 265px); color: #627d6a; stroke: currentColor; stroke-width: .85; z-index: -1; }
.intro-copy, .cv p:not(.eyebrow) { color: var(--muted); margin: 0; }
.actions { margin-top: 27px; display: flex; align-items: center; flex-wrap: wrap; gap: 14px 25px; font-size: .87rem; font-weight: 600; }
.actions span { margin-left: 5px; }
.primary { background: var(--dark); color: var(--paper); padding: 11px 15px; text-decoration: none; }
.primary:hover { background: #375e4c; }
.section { padding: 28px 0 56px; border-top: 1px solid var(--line); scroll-margin-top: 22px; }
.section-label { color: #6d533e; margin-bottom: 8px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 23px; }
h2 { font-size: clamp(2.2rem, 4.8vw, 3.65rem); line-height: 1.05; letter-spacing: -.043em; }
.counter { color: var(--muted); white-space: nowrap; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.project { border: 1px solid var(--line); background: #fbf9f1; min-width: 0; }
.art { display: block; width: 100%; height: auto; }
.project-image { aspect-ratio: 360 / 214; object-fit: contain; background: #e9ece4; }
#redes-islenas .project-image { background: #163b53; }
#cida .project-image { background: #fff; }
#gender-migration-madness .project-image { object-fit: cover; object-position: 30% center; }
#knights-projects .project-image { object-fit: cover; object-position: center 39%; }
.orb { color: #dce8d8; background: #294b3f; }
.islands { color: #315c50; background: #c9dcd0; }
.knight { color: #6c432b; background: #e8c9a0; }
.project-info { padding: 16px 18px 18px; }
.project-info .eyebrow { color: var(--muted); }
.project h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.1; margin-top: 6px; }
.pending { font-size: .82rem; color: var(--muted); margin: 8px 0 0; }
.cv-content { display: grid; grid-template-columns: 2fr 3fr; gap: 30px; margin-top: 18px; }
.cv-toggle { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; }
.cv-toggle::-webkit-details-marker { display: none; }
.cv-toggle .section-label { display: block; }
.cv-toggle::after { content: '+'; font-size: 1.5rem; }
.cv > details[open] > .cv-toggle::after { content: '−'; }
.cv-toggle:hover h2 { color: #426453; }
.cv-toggle:focus-visible { outline: 2px solid #815333; outline-offset: 3px; }
.cv-list { list-style: none; padding: 0; margin: 0; }
.cv-list li { display: flex; align-items: baseline; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cv-list li:first-child { border-top: 1px solid var(--line); }
.cv-list h3 { font-size: 1.3rem; }
.cv-list span { color: var(--muted); }
.footer { border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-block: 22px; font-size: .84rem; }
.footer .mark { margin-right: 5px; }
@media (max-width: 850px) { .hero-art { right: 0; top: 70px; width: 22%; opacity: .5; } }
@media (max-width: 660px) {
  .wrap { width: calc(100% - 36px); }
  .top { min-height: 66px; }
  .wordmark, nav { font-size: .79rem; }
  .wordmark { gap: 5px; }
  .intro { padding-block: 48px; }
  h1 { font-size: clamp(2.65rem, 10vw, 4rem); }
  .desktop, .hero-art { display: none; }
  .project-grid, .cv-content { grid-template-columns: 1fr; }
  .counter { font-size: .6rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 32%); column-gap: clamp(28px, 5vw, 80px); }
.intro > :not(.portrait) { grid-column: 1; }
.intro h1 { font-size: clamp(2.9rem, 7vw, 6.35rem); }
.portrait { grid-area: 1 / 2 / 6 / 3; align-self: center; width: 100%; height: auto; aspect-ratio: 4 / 4.25; object-fit: cover; object-position: 53% center; border-radius: 22% 22% 19% 19%; mask-image: radial-gradient(ellipse farthest-corner, #000 75%, transparent 100%); }
.collaborations { margin-top: 38px; }
.collaborations h2 { font-size: clamp(1.85rem, 4vw, 2.8rem); }
.cv-list > li { display: block; padding: 0; }
.cv-list summary { display: flex; align-items: baseline; gap: 14px; padding: 12px 0; cursor: pointer; list-style: none; }
.cv-list summary::-webkit-details-marker { display: none; }
.cv-list summary::after { content: '+'; margin-left: auto; }
.cv-list details[open] > summary::after { content: '−'; }
.cv-list summary:hover .cv-label { text-decoration: underline; }
.cv-list summary:focus-visible { outline: 2px solid #815333; outline-offset: 3px; }
.cv-list .cv-label { font: 1.27rem/1.2 Georgia, serif; color: var(--ink); }
.cv-entries { padding: 0 0 8px 29px; list-style: none; }
.cv-list .cv-entries li { display: block; padding: 7px 0; border: 0; font-size: .88rem; color: var(--muted); }
@media (max-width: 700px) {
  .intro { grid-template-columns: 1fr; }
  .portrait { grid-area: auto; grid-column: 1; margin-top: 26px; width: min(100%, 330px); aspect-ratio: 5 / 4; }
}

.cv-download { display: inline-block; margin-top: 18px; font-size: .9rem; font-weight: 600; }

.language-link { font-weight: 650; }
@media (max-width: 480px) {
  .top { flex-wrap: wrap; row-gap: 8px; padding-block: 12px; }
  .top nav { flex-wrap: wrap; gap: 8px 16px; }
}

.media-cover { aspect-ratio: 360 / 214; object-fit: contain; background: #e9ece4; }
#interview-rootscast .media-cover { background: #232d26; }
#interview-colony .media-cover { background: #dce4dc; }
#interview-coffee .media-cover { background: #e8dbc8; }
.media-card { display: flex; flex-direction: column; }
.media-card .project-info { display: flex; flex: 1; flex-direction: column; align-items: flex-start; }
.media-card h3 { margin-bottom: 14px; }
.media-link { margin-top: auto; font-size: .88rem; font-weight: 650; }
@media (max-width: 760px) { .top nav { flex-wrap: wrap; } }

.project-thumb { position: relative; display: block; text-decoration: none; }
.project-thumb span {
  position: absolute;
  right: 9px;
  bottom: 9px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  line-height: 1;
}
.project-thumb:hover span, .project-thumb:focus-visible span { background: var(--dark); color: var(--paper); }
#projects .pending a, .cv-content a { color: #29463a; font-weight: 600; text-decoration: none; }
#projects .pending a:is(:hover, :focus-visible), .cv-content a:is(:hover, :focus-visible) { text-decoration: underline; }

.profile-links { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; margin: 0 0 14px; padding: 0; }
.profile-links a { display: grid; place-items: center; min-width: 32px; min-height: 36px; }
.profile-icon { display: block; width: 24px; height: 24px; object-fit: contain; }
.profile-links a:hover .profile-icon { transform: scale(1.1); }
@media (pointer: coarse) { .profile-links a { min-width: 44px; min-height: 44px; } }
