@import url("https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&family=Instrument+Serif&display=swap");

:root {
  color-scheme: light;
  --ink: #15231c;
  --paper: #f7f7f3;
  --forest: #14201b;
  --mint: #c5e6ad;
  --muted: #4e6055;
  --line: #d9e0d5;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  font-family: "Geist", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #72a947; outline-offset: 4px; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { position: fixed; top: 10px; left: 10px; z-index: 2; padding: 12px; background: white; color: var(--ink); }
.wrap { width: min(1136px, calc(100% - 72px)); margin-inline: auto; }
.masthead, .hero, .contact, footer { background: var(--forest); color: #f0f4ed; }
.masthead { border-bottom: 1px solid #314039; }
.header-inner, .footer-inner, .section-heading, .project-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.header-inner { min-height: 75px; }
.brand, nav a, .header-contact, footer a { text-decoration: none; }
.brand { display: inline-flex; gap: 11px; align-items: center; font-weight: 700; }
.brand-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--mint); color: var(--forest); font: 600 .76rem var(--mono); }
nav { display: flex; gap: clamp(16px, 3vw, 36px); }
nav a { font-size: .9rem; color: #c4d0c5; }
nav a:hover, footer a:hover { color: var(--mint); }
.header-contact { font-size: .9rem; color: var(--mint); display: inline-flex; align-items: center; gap: 8px; }
.hero { padding-block: clamp(65px, 10vw, 132px); overflow: hidden; }
.hero-grid, .background-grid, .contact-grid { display: grid; align-items: center; grid-template-columns: 1.32fr 1fr; gap: clamp(26px, 6vw, 92px); }
.eyebrow { margin: 0 0 13px; font: 600 .74rem/1.5 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: #3c6243; }
.location { display: flex; align-items: center; gap: 10px; color: #bbd2be; }
.location span { background: var(--mint); width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 15px #b7f26d66; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 19px 0; font-size: clamp(3.15rem, 7.2vw, 6.8rem); line-height: .96; letter-spacing: -.077em; font-weight: 800; max-width: 10ch; }
.role { color: var(--mint); font-size: clamp(1rem, 2vw, 1.35rem); font-weight: 600; margin: 24px 0 0; }
.intro { color: #becdc1; max-width: 46ch; margin: 13px 0 27px; line-height: 1.7; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 13px; min-height: 46px; padding: 11px 17px; border: 1px solid transparent; border-radius: 7px; font-size: .9rem; font-weight: 700; text-decoration: none; }
.primary { background: var(--mint); color: #152218; }
.primary:hover { background: #daf0c7; }
.ghost { color: #eef4ec; border-color: #576b5b; }
.ghost:hover { background: #25382c; }
.hero-art { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1.13; border: 1px solid #3b5744; border-radius: 14px; overflow: hidden; isolation: isolate; background: radial-gradient(ellipse at 50% 48%, #334e34 0%, #182e22 56%, #11241a 100%); }
.hero-art::before { content: ""; position: absolute; inset: 0; opacity: .46; background-image: linear-gradient(#8cb28624 1px, transparent 1px), linear-gradient(90deg, #8cb28624 1px, transparent 1px); background-size: 26px 26px; }
.orbit { position: absolute; border: 1px solid #7897757d; border-radius: 50%; aspect-ratio: 1; }
.orbit-outer { width: 66%; border-style: dashed; }
.orbit-inner { width: 51%; }
.art-axis { position: absolute; background: #8da5835e; }
.art-axis-x { width: 88%; height: 1px; }
.art-axis-y { height: 88%; width: 1px; }
.art-code { z-index: 1; display: grid; place-items: center; width: 35%; aspect-ratio: 1; background: #17291e; color: var(--mint); border: 1px solid #87ae64; border-radius: 25%; box-shadow: 0 0 44px #0e1b12ad; font: 500 clamp(1.8rem, 5vw, 4.1rem) var(--mono); letter-spacing: -.13em; padding-right: .13em; transform: rotate(-8deg); }
.art-node { position: absolute; width: 11px; height: 11px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 18px #bdfa86aa; }
.art-node-top { left: 26%; top: 22%; }
.art-node-bottom { right: 25%; bottom: 23%; width: 7px; height: 7px; }
.art-caption { position: absolute; bottom: 13px; color: #c1d9bc; font: 500 clamp(.53rem, 1.1vw, .69rem) var(--mono); letter-spacing: .1em; }
.art-caption span { color: var(--mint); }
.section { padding-block: clamp(55px, 8vw, 108px); }
.section-heading { align-items: end; margin-bottom: 25px; }
.section-heading > p { margin: 0 0 2px; max-width: 34ch; color: var(--muted); line-height: 1.6; }
h2 { font-size: clamp(2.45rem, 5.5vw, 4.7rem); line-height: .98; letter-spacing: -.067em; margin: 0; font-weight: 800; }
h3 { letter-spacing: -.032em; margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.filters button { background: transparent; border: 1px solid #ccd6ca; border-radius: 30px; padding: 8px 13px; color: #324439; font-size: .84rem; }
.filters button:hover { background: #e5ebdf; }
.filters button[aria-pressed="true"] { background: #203429; border-color: #203429; color: white; }
.project-grid, .skills-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.project, .skill-group { padding: clamp(20px, 3vw, 34px); border: 1px solid var(--line); border-radius: 12px; background: #fdfdf8; min-width: 0; }
.project { display: flex; flex-direction: column; align-items: start; }
.project-top { width: 100%; align-items: start; }
.project h3 { font-size: clamp(1.3rem, 3vw, 2rem); line-height: 1.12; }
.project-description { color: var(--muted); line-height: 1.65; margin: 13px 0 20px; }
.featured { grid-column: 1 / -1; background: #e6efd9; border-color: #cbd9c0; }
.featured h3 { font-size: clamp(1.7rem, 4vw, 2.8rem); }
.featured .project-description { max-width: 72ch; }
.feature-label { font: 500 .68rem var(--mono); padding: 6px 8px; border-radius: 4px; background: #d6e4c7; color: #335137; text-align: center; }
.tags { margin: auto 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 7px; }
.tags li { font: 500 .72rem/1.4 var(--mono); color: #2b4936; border: 1px solid #d5e0d1; background: #f2f6ed; padding: 5px 8px; border-radius: 5px; overflow-wrap: anywhere; }
.project-link { font-weight: 700; font-size: .9rem; margin-top: 16px; text-underline-offset: 4px; }
.background { background: #edf1e7; border-block: 1px solid #dce4d8; }
.background-grid { grid-template-columns: 1fr 1.35fr; align-items: start; }
.about > p:last-child, .contact p { line-height: 1.7; max-width: 45ch; }
.about > p:last-child { color: var(--muted); }
.subheading { font-size: 1.25rem; margin-bottom: 22px; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline > li { position: relative; border-left: 1px solid #aabbab; padding: 0 0 28px 24px; }
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li::before { content: ""; position: absolute; left: -5px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: #527853; }
.timeline .eyebrow { margin-bottom: 6px; }
.timeline h3 { font-size: 1.4rem; }
.employer { font-weight: 600; margin: 4px 0 9px; }
.timeline ul { padding-left: 18px; color: var(--muted); line-height: 1.55; }
.timeline ul li + li { margin-top: 5px; }
.skills-grid { margin-top: 25px; }
.skill-group h3 { margin-bottom: 14px; font-size: 1.16rem; }
.education { margin-top: 38px; }
.education ul { padding: 0; list-style: none; border-top: 1px solid var(--line); }
.education li { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; padding-block: 14px; border-bottom: 1px solid var(--line); }
.education li span { color: var(--muted); }
.contact-grid { grid-template-columns: 1fr 1fr; align-items: start; }
.contact .eyebrow { color: var(--mint); }
.contact p:not(.eyebrow) { color: #c2cfc3; }
.contact .ghost { margin-top: 8px; }
form { border: 1px solid #405349; background: #182820; border-radius: 12px; padding: clamp(19px, 4vw, 34px); }
.field { margin-bottom: 16px; }
.field label { display: block; color: #eff5ec; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; padding: 11px; border: 1px solid #536a59; border-radius: 6px; color: #fff; background: #101c17; }
.field textarea { resize: vertical; min-height: 100px; }
.field input::placeholder, .field textarea::placeholder { color: #a5b6a9; }
.errorlist { color: #ffb9ad; margin: 7px 0; padding-left: 18px; font-size: .88rem; }
.notice { border: 1px solid #668351; padding: 11px; margin-top: 0; border-radius: 6px; }
footer { border-top: 1px solid #34473a; }
.footer-inner { min-height: 72px; font-size: .85rem; color: #c2cfc3; }
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .header-inner { flex-wrap: wrap; padding-block: 12px; gap: 12px; }
  nav { order: 3; width: 100%; padding-left: 45px; }
  .header-contact { margin-left: auto; }
  .hero-grid, .background-grid, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-art { max-width: 460px; }
  .art-code { font-size: clamp(2.25rem, 10vw, 3.8rem); }
  .section-heading { align-items: start; flex-direction: column; }
}
@media (max-width: 500px) {
  .project-grid, .skills-grid { grid-template-columns: 1fr; }
  .brand { font-size: .88rem; }
  .header-contact { font-size: .78rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

nav a[aria-current="page"] { color: var(--mint); }
.hero-visual { min-width: 0; }
.hero-portrait { width: 100%; margin: 0; overflow: hidden; border: 1px solid #526657; border-radius: 14px; background: #25382c; aspect-ratio: 1.13; }
.hero-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero-edit { display: inline-block; margin-top: 12px; color: var(--mint); font-size: .88rem; text-underline-offset: 4px; }
.blog-page { min-height: 62vh; }
.blog-page h1 { max-width: none; font-size: clamp(2.65rem, 6vw, 5rem); margin: 10px 0 0; }
.blog-intro { color: var(--muted); line-height: 1.65; margin: 16px 0 0; }
.blog-action { background: #203429; color: white; }
.blog-action:hover { background: #314b3b; }
.blog-empty { padding: clamp(18px, 3vw, 32px); color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; }
.blog-article { max-width: 850px; }
.back-link { display: inline-block; margin-bottom: 25px; color: #3c6243; text-underline-offset: 4px; }
.blog-cover { display: block; max-width: 100%; max-height: 600px; margin: 28px auto; border-radius: 12px; object-fit: contain; }
.blog-body { max-width: 68ch; margin-top: 26px; font-size: 1.05rem; line-height: 1.8; white-space: normal; }
@media (max-width: 760px) { .hero-portrait { max-width: 460px; } }

.journal { min-height: 74vh; background: #f3f4ed; }
.journal-mast { background: var(--forest); color: #f0f4ed; border-bottom: 1px solid #3e5144; }
.journal-mast-inner { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding-block: clamp(32px, 5vw, 52px) clamp(32px, 4.5vw, 48px); }
.journal-mast .eyebrow { color: var(--mint); margin: 0; }
.journal-mast h1 { font: 400 clamp(2.9rem, 6.3vw, 5.55rem)/.94 "Instrument Serif", Georgia, serif; letter-spacing: -.045em; max-width: none; margin: 13px 0 10px; }
.journal-deck { color: #c7d5c9; margin: 0; line-height: 1.55; font-size: clamp(.95rem, 1.5vw, 1.1rem); }
.journal-write { flex: none; }
.journal-content { padding-block: clamp(24px, 4vw, 48px) clamp(56px, 8vw, 100px); }
.journal-feature { display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(0, 1fr); align-items: stretch; border: 1px solid #bdcdbd; border-radius: 15px; overflow: hidden; background: #e3ebdb; }
.journal-feature:not(:has(.journal-feature-media)) { grid-template-columns: 1fr; }
.journal-feature-media { display: grid; place-items: center; min-width: 0; padding: clamp(17px, 3vw, 34px); background: #1b2d24; }
.journal-feature-media img { max-width: 100%; max-height: 265px; display: block; object-fit: contain; border-radius: 6px; }
.journal-feature-copy { padding: clamp(22px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; align-items: start; min-width: 0; }
.journal-feature-copy h2 { font: 400 clamp(2.15rem, 4vw, 3.75rem)/.98 "Instrument Serif", Georgia, serif; letter-spacing: -.028em; }
.journal-feature-copy h2 a, .journal-card h3 a { text-decoration: none; }
.journal-feature-copy h2 a:hover, .journal-card h3 a:hover { text-decoration: underline; text-underline-offset: .13em; }
.journal-feature-copy > p:not(.eyebrow) { color: #414f44; line-height: 1.65; margin: 14px 0 23px; max-width: 45ch; }
.journal-feature-copy .primary { background: #203429; color: #f1f6ee; }
.journal-feature-copy .primary:hover { background: #344c3b; }
.journal-archive { margin-top: clamp(35px, 6vw, 68px); }
.journal-toolbar { display: flex; gap: 20px; align-items: center; justify-content: space-between; padding-bottom: 16px; margin-bottom: 19px; border-bottom: 1px solid #cbd5c9; }
.journal-toolbar h2 { font-size: clamp(1.65rem, 3vw, 2.45rem); letter-spacing: -.06em; }
.journal-count { color: var(--muted); margin: 8px 0 0; font: 500 .75rem var(--mono); }
.journal-search { position: relative; width: min(100%, 310px); }
.journal-search::before { content: ""; position: absolute; left: 15px; top: 14px; width: 12px; height: 12px; border: 1.5px solid #4e6055; border-radius: 50%; pointer-events: none; }
.journal-search::after { content: ""; position: absolute; left: 24px; top: 24px; width: 6px; height: 1.5px; background: #4e6055; transform: rotate(45deg); pointer-events: none; }
.journal-search input { width: 100%; min-height: 44px; padding: 10px 14px 10px 38px; border: 1px solid #bccbbd; border-radius: 7px; color: var(--ink); background: #fcfdfa; font-size: .92rem; }
.journal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.journal-card { min-width: 0; position: relative; display: flex; flex-direction: column; border: 1px solid #d2dbcf; border-radius: 12px; overflow: hidden; background: #fdfdf9; }
.journal-card:hover, .journal-card:focus-within { border-color: #789784; }
.journal-card-image { display: grid; place-items: center; padding: 10px; aspect-ratio: 1.95; background: #e3ebe1; overflow: hidden; }
.journal-card-image img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; border-radius: 4px; }
.journal-card-copy { flex: 1; padding: 20px 21px 46px; }
.journal-card-text { border-top: 4px solid #aebfa8; }
.journal-card-text .journal-card-copy { padding-top: 25px; }
.journal-card time { font: 500 .69rem var(--mono); color: var(--muted); text-transform: uppercase; }
.journal-card h3 { margin: 9px 0; font-size: clamp(1.09rem, 2vw, 1.4rem); line-height: 1.2; }
.journal-card h3 a::after { position: absolute; inset: 0; content: ""; }
.journal-card-copy p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.journal-card-arrow { position: absolute; bottom: 13px; right: 16px; font-size: 1.12rem; color: #395b43; }
.journal-more { display: flex; justify-content: center; }
.journal-more button:not([hidden]) { margin-top: 26px; }
@media (max-width: 860px) {
  .journal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 630px) {
  .journal-mast-inner { flex-wrap: wrap; }
  .journal-feature { grid-template-columns: 1fr; }
  .journal-feature-media img { max-height: 235px; }
  .journal-toolbar { flex-direction: column; align-items: stretch; gap: 13px; }
  .journal-search { width: 100%; }
}
@media (max-width: 480px) {
  .journal-grid { grid-template-columns: 1fr; }
}

/* The previous blog template can remain cached until its server restarts. */
.blog-grid { align-items: stretch; }
.blog-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fdfdf8; }
.blog-thumbnail { display: block; width: 100%; aspect-ratio: 2; object-fit: contain; background: #e3ebe1; }
.blog-card-body { padding: clamp(18px, 3vw, 32px); }
.blog-card h2 { margin-top: 10px; font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -.04em; }
.blog-card h2 a { text-decoration: none; }
.blog-card h2 a:hover { text-decoration: underline; }
.blog-card p { color: var(--muted); line-height: 1.6; }

.about > p:not(.eyebrow) { color: var(--muted); line-height: 1.7; max-width: 45ch; }
.odoo-experience { margin-top: 28px; padding-top: 20px; border-top: 1px solid #cbd7c8; }
.odoo-experience h3 { font-size: clamp(1.2rem, 2vw, 1.47rem); }
.odoo-modules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0; margin: 13px 0; list-style: none; }
.odoo-modules li { display: flex; align-items: center; gap: 9px; min-width: 0; min-height: 46px; padding: 6px 9px; border: 1px solid #d4dfd1; border-radius: 8px; background: #f8faf4; font-size: .83rem; font-weight: 650; line-height: 1.28; }
.odoo-modules li img { width: 28px; height: 28px; flex: none; object-fit: contain; }
.odoo-modules li span { min-width: 0; overflow-wrap: anywhere; }
.odoo-technical { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin: 15px 0 0; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.odoo-technical strong { color: var(--ink); font-size: .78rem; }
@media (max-width: 365px) {
  .odoo-modules li { gap: 6px; padding-inline: 6px; }
  .odoo-modules li img { width: 24px; height: 24px; }
}
