:root {
  --paper: #f5f1e9;
  --ink: #20231f;
  --muted: #77786f;
  --line: #d7d2c8;
  --orange: #e85d32;
  --olive: #878b68;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
  --mono: "DM Mono", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.grain { position: fixed; inset: 0; z-index: 20; pointer-events: none; opacity: .13; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E"); }
.mono, .eyebrow, .project-caption, .contact-foot { font-family: var(--mono); letter-spacing: .07em; }
.site-header { height: 82px; padding: 0 6.4vw; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.wordmark { font-weight: 800; font-size: 1.35rem; letter-spacing: -.08em; }
.wordmark span, .period { color: var(--orange); }
.main-nav { display: flex; gap: clamp(20px, 3.2vw, 52px); font-size: .73rem; font-weight: 700; }
.main-nav a, .nav-cta, .text-link { transition: color .2s ease; }
.main-nav a:hover, .nav-cta:hover, .text-link:hover { color: var(--orange); }
.nav-cta { font-size: .72rem; font-weight: 700; }
.nav-cta span { color: var(--orange); margin-left: 8px; }
.section-wrap { padding-left: 12.5vw; padding-right: 12.5vw; }
.hero { position: relative; min-height: 740px; height: calc(100svh - 82px); max-height: 950px; padding-top: 40px; padding-bottom: 54px; overflow: hidden; }
.hero-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: .62rem; }
.hero-content { width: min(100%, 900px); margin: 14vh auto 0; text-align: center; }
.eyebrow { font-size: .62rem; color: var(--muted); font-weight: 500; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #77935d; box-shadow: 0 0 0 4px #77935d1c; }
h1, h2, p { margin-top: 0; }
.hero h1 { margin: 26px 0 28px; font-size: clamp(4.5rem, 11vw, 10.6rem); font-weight: 600; letter-spacing: -.095em; line-height: .87; }
.hero h1 span:first-child { font-family: var(--serif); font-weight: 600; font-style: italic; }
.hero-bottom { max-width: 630px; margin: auto; display: grid; grid-template-columns: 1fr 54px 1fr; align-items: center; text-align: left; }
.hero-bottom p { margin: 0; font-size: .84rem; line-height: 1.8; }
.round-link { width: 44px; height: 44px; border: 1px solid var(--ink); display: grid; place-items: center; border-radius: 50%; font-size: 1.2rem; transition: background .2s,color .2s; }
.round-link:hover { color: var(--paper); background: var(--ink); }
.hero-index { justify-self: end; color: var(--muted); font-size: .62rem; }
.hero-side { position: absolute; right: 2.4vw; bottom: 56px; writing-mode: vertical-rl; color: var(--muted); font-size: .55rem; }
.projects { padding-top: 130px; padding-bottom: 150px; }
.section-heading { display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: clamp(24px, 6vw, 88px); margin-bottom: 74px; }
.section-title .eyebrow { margin: 0 0 22px; }
h2 { font-size: clamp(3.2rem, 6.3vw, 6.7rem); line-height: .94; letter-spacing: -.075em; font-weight: 600; margin-bottom: 0; }
h2 em { font-family: var(--serif); font-weight: 600; }
.section-intro { max-width: 380px; margin: 0 0 7px auto; color: var(--muted); font-size: .82rem; line-height: 1.8; }
.project-grid { display: grid; grid-template-columns: 1.08fr .92fr; column-gap: 8%; row-gap: 78px; }
.project-offset { margin-top: 96px; }
.project-third { width: 84%; }
.project-last { margin-top: -15px; }
.project-art { position: relative; min-height: 370px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.project-large .project-art { min-height: 485px; }
.project-art > b { position: absolute; z-index: 2; top: 20px; right: 22px; font: .62rem var(--mono); }
.art-type { background: #dbd3c3; }
.art-type > span { position: relative; z-index: 1; font: 600 clamp(3rem, 6vw, 6rem)/.9 var(--serif); letter-spacing: -.08em; }
.art-type > span i { color: var(--orange); }
.art-orbit { position: absolute; width: 280px; height: 280px; border: 1px solid #25251e44; border-radius: 50%; right: -80px; bottom: -100px; box-shadow: 0 0 0 25px #25251e08,0 0 0 50px #25251e08; }
.art-motion { background: var(--orange); color: #f5f1e9; }
.motion-word { position: relative; z-index: 1; text-align: center; font: 800 clamp(3.5rem, 6vw, 6rem)/.82 var(--sans); letter-spacing: -.09em; transform: rotate(5deg); }
.motion-line { position: absolute; z-index: 0; width: 140%; height: 100px; border: 1px solid #f5f1e988; border-radius: 50%; transform: rotate(-28deg); }
.art-code { background: #b6bd9a; flex-direction: column; font: 700 1.7rem/1.2 var(--mono); letter-spacing: -.08em; }
.code-mark { color: #f5f1e9; font-size: 6rem; }
.art-poster { background: #d6c6b7; justify-content: flex-start; padding-left: 12%; }
.art-poster > span:first-child { position: relative; z-index: 1; font: 600 clamp(3rem, 5vw, 5.5rem)/.9 var(--serif); letter-spacing: -.08em; }
.art-poster i { color: var(--orange); }
.poster-sun { position: absolute; width: 230px; height: 230px; border-radius: 50%; background: #e8a05f; right: -20px; top: 40px; }
.project-caption { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 15px; color: var(--muted); font-size: .57rem; }
.project-caption span:first-child { flex: 1; min-width: 0; }
.project-caption span:last-child { white-space: nowrap; }
.about { padding-top: 52px; padding-bottom: 120px; background: #e8e4da; }
.about-label { display: flex; justify-content: space-between; font-size: .62rem; color: var(--muted); }
.about-label span:last-child { color: var(--orange); font-size: 1.4rem; }
.about-layout { min-height: 450px; display: grid; grid-template-columns: 1fr .8fr; gap: 10%; align-items: center; padding: 60px 5% 80px; }
.about-layout h2 { font-size: clamp(4rem, 7vw, 7.8rem); }
.about-copy { max-width: 430px; padding-top: 30px; }
.about-lead { font: 600 clamp(1.7rem, 2.5vw, 2.5rem)/1.2 var(--serif); letter-spacing: -.035em; margin-bottom: 24px; }
.about-copy > p:not(.about-lead) { max-width: 380px; color: #686961; font-size: .83rem; line-height: 1.9; }
.text-link { display: inline-block; margin-top: 15px; padding-bottom: 8px; border-bottom: 1px solid var(--ink); font-size: .75rem; font-weight: 700; }
.text-link span { color: var(--orange); margin-left: 22px; }
.skills-row { display: flex; flex-wrap: wrap; gap: 10px; padding: 22px 0 0; border-top: 1px solid #bfbbae; }
.skills-row span { border: 1px solid #bfbbae; border-radius: 30px; padding: 9px 14px; font: .58rem var(--mono); }
.certificates { padding-top: 138px; padding-bottom: 140px; }
.certificate-heading { display: grid; grid-template-columns: .8fr 1.3fr .8fr; gap: 28px; align-items: end; margin-bottom: 65px; }
.certificate-heading .eyebrow { align-self: start; margin-top: 15px; }
.certificate-heading h2 { font-size: clamp(3.5rem, 7vw, 7rem); }
.certificate-heading > p:last-child { max-width: 270px; margin: 0 0 4px auto; color: var(--muted); font-size: .8rem; line-height: 1.8; }
.certificate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.certificate-down { margin-top: 70px; }
.certificate-visual { position: relative; aspect-ratio: 1.26; padding: 24px; display: flex; flex-direction: column; justify-content: center; border: 1px solid #20231f66; outline: 1px solid #20231f66; outline-offset: -8px; overflow: hidden; }
.certificate-visual::before, .certificate-visual::after { content: ""; position: absolute; width: 160px; height: 160px; border: 1px solid currentColor; border-radius: 50%; opacity: .35; }
.certificate-visual::before { right: -50px; top: -50px; box-shadow: 0 0 0 15px #ffffff0a,0 0 0 30px #ffffff0a; }
.certificate-visual::after { left: -100px; bottom: -110px; width: 220px; height: 220px; }
.certificate-visual-one { background: #b6bd9a; }
.certificate-visual-two { background: #d5b9a4; }
.certificate-visual-three { background: #d6d2c2; }
.certificate-visual small { position: relative; z-index: 1; font: .48rem var(--mono); letter-spacing: .1em; }
.certificate-visual strong { position: relative; z-index: 1; margin: 16px 0; font: 700 clamp(1.7rem, 3vw, 3rem)/.94 var(--sans); letter-spacing: -.08em; }
.cert-seal { position: absolute; top: 23px; right: 25px; z-index: 1; font-size: 1.4rem; }
.cert-rule { width: 55%; height: 1px; background: currentColor; margin: 4px 0 10px; opacity: .6; }
.certificate-card > p { display: flex; gap: 12px; margin-top: 14px; font-size: .72rem; }
.certificate-card > p span { font: .6rem var(--mono); color: var(--orange); }
.certificate-note { margin-top: 34px; color: var(--muted); font-size: .53rem; text-align: right; }
.writing { padding-top: 105px; padding-bottom: 120px; background: #e8e4da; }
.writing-top { display: flex; justify-content: space-between; align-items: end; margin-bottom: 52px; }
.writing-top h2 { margin-top: 25px; }
.writing-top > p { max-width: 300px; margin: 0 0 6px; color: var(--muted); font-size: .8rem; line-height: 1.8; }
.article-list { border-top: 1px solid #c5c1b6; }
.article-row { display: grid; grid-template-columns: 100px 1fr 120px; gap: 18px; align-items: center; padding: 24px 4px; border-bottom: 1px solid #c5c1b6; }
.article-row time { font: .58rem var(--mono); color: var(--muted); }
.article-row h3 { margin: 0; font: 600 1.35rem var(--serif); }
.article-row p { margin: 6px 0 0; color: var(--muted); font-size: .73rem; line-height: 1.6; }
.article-reading { justify-self: end; font: .6rem var(--mono); }
.article-reading summary { cursor: pointer; list-style: none; }
.article-reading summary::-webkit-details-marker { display: none; }
.article-reading summary::after { content: " ↗"; color: var(--orange); }
.article-reading[open] { grid-column: 2 / -1; justify-self: stretch; }
.article-reading[open] summary { margin-bottom: 12px; }
.article-reading > div { max-width: 760px; white-space: pre-wrap; color: #55574f; font: .8rem/1.9 var(--sans); }
.empty-state { padding: 24px 0; color: var(--muted); font-size: .8rem; }
.contact { padding-top: 95px; padding-bottom: 34px; background: var(--ink); color: var(--paper); }
.contact .eyebrow { color: #b2b1a7; }
.contact-layout { display: flex; align-items: end; justify-content: space-between; padding: 30px 0 95px; }
.contact-layout h2 { font-size: clamp(4.5rem, 10vw, 10rem); }
.contact-button { border: 1px solid #85867e; border-radius: 50%; width: 150px; height: 150px; display: grid; place-content: center; text-align: center; font-size: .78rem; transition: background .2s,color .2s; }
.contact-button span { display: block; color: var(--orange); font-size: 1.3rem; margin-top: 4px; }
.contact-button:hover { color: var(--ink); background: var(--paper); }
.contact-foot { display: flex; gap: 30px; border-top: 1px solid #54564f; padding-top: 20px; color: #aaa99f; font-size: .55rem; }
.contact-foot span { margin-right: auto; }
.contact-foot a { transition: color .2s ease; }
.contact-foot a:hover { color: var(--paper); }
.app-view[hidden] { display: none; }
.app-view:not([hidden]) { min-height: 100vh; }
body.auth-mode { background: #e8e4da; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.auth-art { position: relative; min-height: 100vh; padding: 42px 8%; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; background: var(--ink); color: var(--paper); }
.auth-art .wordmark { position: relative; z-index: 1; }
.auth-art h1 { position: relative; z-index: 1; max-width: 600px; font: 600 clamp(4rem, 7vw, 7rem)/.93 var(--serif); letter-spacing: -.07em; }
.auth-art h1 em { color: #b6bd9a; }
.auth-art .mono { position: relative; z-index: 1; color: #b2b1a7; font-size: .58rem; }
.auth-shape { position: absolute; width: min(60vw, 640px); aspect-ratio: 1; border: 1px solid #f5f1e933; border-radius: 50%; right: -25%; top: 15%; box-shadow: 0 0 0 45px #f5f1e90a,0 0 0 90px #f5f1e90a; }
.auth-panel { display: grid; place-items: center; padding: 50px 9%; }
.auth-form { width: min(100%, 400px); }
.auth-form .eyebrow { margin-bottom: 20px; }
.auth-form h2 { font-size: clamp(2.7rem, 5vw, 4.7rem); margin-bottom: 12px; }
.auth-form > p { color: var(--muted); font-size: .8rem; line-height: 1.7; margin-bottom: 32px; }
.field { display: grid; gap: 9px; margin-bottom: 18px; }
.field label { font: .61rem var(--mono); text-transform: uppercase; }
.field input, .field textarea { width: 100%; padding: 14px 15px; border: 1px solid #c9c4b8; outline: none; background: #f5f1e9; color: var(--ink); font-size: .8rem; }
.field input:focus, .field textarea:focus { border-color: var(--orange); }
.field textarea { min-height: 140px; resize: vertical; }
.primary-button, .secondary-button, .danger-button { cursor: pointer; border: 0; padding: 14px 18px; font-weight: 700; font-size: .75rem; }
.primary-button { width: 100%; color: var(--paper); background: var(--ink); }
.primary-button:hover { background: var(--orange); }
.secondary-button { background: transparent; border: 1px solid #c9c4b8; }
.danger-button { color: #a13e27; background: #a13e2713; }
.form-error { min-height: 20px; margin: 12px 0 0; color: #b13d24 !important; font-size: .73rem !important; }
.back-link { display: inline-block; margin-top: 28px; font: .62rem var(--mono); }
.dashboard-view { background: #efede5; }
.dashboard-shell { min-height: 100vh; display: grid; grid-template-columns: 250px 1fr; }
.dashboard-side { padding: 30px 23px; background: var(--ink); color: var(--paper); display: flex; flex-direction: column; }
.dashboard-side .wordmark { margin-bottom: 65px; }
.dashboard-side .eyebrow { color: #aaa99f; font-size: .55rem; }
.dashboard-side nav { display: grid; gap: 8px; margin-top: 20px; }
.dashboard-side nav button { text-align: left; cursor: pointer; border: 0; padding: 13px 10px; color: #cfcec4; background: transparent; font-size: .76rem; }
.dashboard-side nav button.active, .dashboard-side nav button:hover { color: var(--paper); background: #ffffff14; }
.dashboard-side .logout-button { cursor: pointer; margin-top: auto; padding: 13px 10px; text-align: left; border: 1px solid #ffffff3b; color: var(--paper); background: transparent; font-size: .7rem; }
.dashboard-main { padding: 42px clamp(22px, 5vw, 76px); }
.dashboard-top { display: flex; justify-content: space-between; align-items: start; margin-bottom: 40px; }
.dashboard-top h1 { font-size: clamp(2.7rem, 5vw, 4.5rem); letter-spacing: -.07em; margin: 12px 0 0; }
.dashboard-user { text-align: right; font: .61rem var(--mono); color: var(--muted); }
.dashboard-user strong { display: block; margin-top: 7px; color: var(--ink); font-weight: 500; }
.dashboard-content { max-width: 1000px; }
.dashboard-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.dashboard-toolbar h2 { font-size: 1.5rem; letter-spacing: -.04em; }
.dashboard-toolbar .primary-button { width: auto; padding: 12px 15px; }
.dashboard-table { width: 100%; border-collapse: collapse; background: #f7f5ef; }
.dashboard-table th, .dashboard-table td { text-align: left; padding: 15px 13px; border-bottom: 1px solid #e1ddd2; font-size: .72rem; }
.dashboard-table th { font: .56rem var(--mono); color: var(--muted); }
.dashboard-table td:last-child { text-align: right; }
.table-actions { display: inline-flex; gap: 8px; align-items: center; }
.table-actions button { padding: 7px 9px; font-size: .64rem; }
.status-pill { padding: 5px 8px; border-radius: 20px; background: #d9e3cb; color: #475b37; font: .54rem var(--mono); }
.status-draft { background: #e9e3d3; color: #736644; }
.editor-card { max-width: 680px; padding: 28px; background: #f7f5ef; }
.editor-actions { display: flex; gap: 10px; margin-top: 10px; }
.editor-actions .primary-button { width: auto; }
.password-box { max-width: 520px; padding: 28px; background: #f7f5ef; }
.toast { position: fixed; right: 25px; bottom: 25px; z-index: 30; max-width: min(380px,calc(100vw - 40px)); padding: 14px 18px; color: var(--paper); background: var(--ink); font-size: .75rem; transform: translateY(140%); opacity: 0; transition: .25s ease; }
.toast.show { transform: translateY(0); opacity: 1; }
@media (max-width: 800px) {
  .site-header { height: 68px; padding: 0 6%; }
  .main-nav { gap: 15px; font-size: .63rem; }
  .nav-cta { display: none; }
  .section-wrap { padding-left: 7%; padding-right: 7%; }
  .hero { height: auto; min-height: 680px; padding-top: 28px; }
  .hero-content { margin-top: 18vh; }
  .hero-side { display: none; }
  .section-heading { grid-template-columns: 1.1fr .9fr; gap: 28px; }
  .section-intro { margin: 0 0 5px; }
  .project-grid { column-gap: 5%; row-gap: 58px; }
  .project-large .project-art { min-height: 390px; }
  .project-art { min-height: 300px; }
  .about-layout { gap: 6%; padding-left: 0; padding-right: 0; }
  .certificate-heading { grid-template-columns: .8fr 1.2fr; }
  .certificate-heading > p:last-child { grid-column: 2; margin-left: 0; }
  .certificate-grid { gap: 14px; }
  .certificate-visual { padding: 18px; }
  .dashboard-shell { grid-template-columns: 190px 1fr; }
  .dashboard-main { padding: 32px 22px; }
}
@media (max-width: 560px) {
  .main-nav { gap: 12px; }
  .main-nav a { font-size: .58rem; }
  .hero { min-height: 650px; }
  .hero-meta { font-size: .5rem; }
  .hero-content { margin-top: 20vh; }
  .hero h1 { font-size: clamp(4rem, 17vw, 6rem); }
  .hero-bottom { grid-template-columns: 1fr 46px; gap: 12px; }
  .hero-index { display: none; }
  .projects { padding-top: 90px; padding-bottom: 90px; }
  .section-heading { grid-template-columns: 1fr; gap: 20px; margin-bottom: 45px; }
  .section-title .eyebrow { margin-bottom: 17px; }
  .section-intro { margin: 0; }
  .project-grid { grid-template-columns: 1fr; row-gap: 42px; }
  .project-offset { margin-top: 0; width: 86%; justify-self: end; }
  .project-third { width: 88%; }
  .project-last { width: 88%; justify-self: end; }
  .project-art, .project-large .project-art { min-height: 340px; }
  .about { padding-top: 36px; padding-bottom: 78px; }
  .about-layout { min-height: auto; grid-template-columns: 1fr; gap: 28px; padding: 55px 0; }
  .about-layout h2 { font-size: 5rem; }
  .about-copy { padding-top: 0; }
  .skills-row { gap: 7px; }
  .skills-row span { font-size: .5rem; padding: 8px 10px; }
  .certificates { padding-top: 90px; padding-bottom: 90px; }
  .certificate-heading { grid-template-columns: 1fr; gap: 17px; margin-bottom: 35px; }
  .certificate-heading .eyebrow { margin: 0; }
  .certificate-heading > p:last-child { grid-column: auto; }
  .certificate-grid { grid-template-columns: 1fr 1fr; gap: 24px 14px; }
  .certificate-down { margin-top: 28px; }
  .certificate-card:last-child { grid-column: 1 / -1; width: 75%; }
  .certificate-visual { padding: 18px; }
  .certificate-visual strong { font-size: 2rem; }
  .certificate-note { font-size: .45rem; }
  .writing { padding-top: 75px; padding-bottom: 80px; }
  .writing-top { display: block; }
  .writing-top > p { margin-top: 22px; }
  .article-row { grid-template-columns: 1fr auto; gap: 10px; }
  .article-row time { grid-column: 1 / -1; }
  .article-reading { grid-column: 2; grid-row: 2 / span 2; }
  .article-reading[open] { grid-column: 1 / -1; grid-row: auto; }
  .contact-layout { display: block; padding: 25px 0 60px; }
  .contact-layout h2 { font-size: 5.4rem; }
  .contact-button { width: 115px; height: 115px; margin: 35px 0 0 auto; }
  .contact-foot { flex-wrap: wrap; gap: 14px; font-size: .48rem; }
  .contact-foot span { width: 100%; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-art { min-height: 260px; padding: 25px 7%; }
  .auth-art h1 { margin: 35px 0; font-size: 3.5rem; }
  .auth-art .mono:last-child { display: none; }
  .auth-panel { padding: 42px 8%; }
  .dashboard-shell { display: block; }
  .dashboard-side { padding: 14px 6%; display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .dashboard-side .wordmark { margin: 0; }
  .dashboard-side .eyebrow { display: none; }
  .dashboard-side nav { grid-column: 1 / -1; display: flex; margin-top: 12px; overflow-x: auto; }
  .dashboard-side nav button { white-space: nowrap; padding: 9px; }
  .dashboard-side .logout-button { margin: 0; padding: 9px; }
  .dashboard-top { margin-bottom: 25px; }
  .dashboard-top h1 { font-size: 2.6rem; }
  .dashboard-user { font-size: .5rem; }
  .dashboard-table th, .dashboard-table td { padding: 11px 8px; font-size: .63rem; }
  .dashboard-table th { font-size: .48rem; }
  .table-actions { flex-direction: column; align-items: flex-end; }
}
