:root {
  --night: #141E1A;
  --deep: #1C2D27;
  --forest: #23403A;
  --moss: #2F5249;
  --eucalyptus: #3D6156;
  --sand: #E6DDC8;
  --warm: #F6F2E9;
  --white: #FFFFFF;
  --cream: #F6F2E9;
  --light-sand: #E8D6B4;
  --bronze: #8A5A22;
  --ink: #1F2B28;
  --muted: #5E6764;
  --rule: #D9CFBB;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Figtree', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--bronze); }
a:hover { color: #6B4419; }
h1, h2, p { margin: 0; }
[hidden] { display: none !important; }

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 56px; }
.wrap-narrow { max-width: 980px; margin: 0 auto; padding: 0 56px; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; }
.label { grid-column: 1 / span 3; font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--light-sand); }
.label.bronze { color: var(--bronze); }

/* Opening screen */
.hero { position: relative; min-height: 100vh; height: 880px; max-height: 1100px; overflow: hidden; background: var(--night); color: var(--cream); }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 115%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; will-change: transform; }
.hero-photo.loaded { opacity: 1; animation: drift 18s ease-out both; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,30,26,0.5) 0%, rgba(20,30,26,0.38) 30%, rgba(20,30,26,0.45) 65%, rgba(28,45,39,0.92) 100%); }
.hero-inner { position: relative; height: 100%; display: flex; flex-direction: column; }
.nav { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; padding-top: 40px; }
.wordmark { font-family: var(--serif); font-weight: 500; font-size: 30px; letter-spacing: 0.02em; color: var(--cream); text-decoration: none; }
.wordmark:hover { color: var(--cream); }
.wordmark { white-space: nowrap; }
.wordmark .cred { font-size: 0.72em; letter-spacing: 0.04em; opacity: 0.8; }
.nav nav { display: flex; gap: 36px; align-items: center; flex-wrap: wrap; font-size: 15px; }
.nav nav a { color: var(--cream); text-decoration: none; }
.nav nav a:hover { color: var(--light-sand); }
.lang { color: var(--light-sand); border-left: 1px solid rgba(232,214,180,0.4); padding-left: 24px; opacity: 0.7; }
.hero-body { flex: 1 1 auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 48px; padding: 48px 0 64px; }
.hero-title { flex: 0 1 680px; font-family: var(--serif); font-weight: 300; font-size: clamp(56px, 7.5vw, 108px); line-height: 0.98; letter-spacing: -0.01em; min-height: 2em; }
.hero-title em, .statement-big em { font-style: italic; }
.hero-side { flex: 0 1 340px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; font-size: 18px; line-height: 1.6; }
.dotted { color: var(--cream); font-size: 14px; font-weight: 500; letter-spacing: 0.12em; text-decoration: none; border-bottom: 1px dotted rgba(246,242,233,0.8); padding-bottom: 6px; }
.dotted:hover { color: var(--light-sand); }

/* What I do */
.statement { background: var(--deep); color: var(--cream); padding: 160px 0; }
.statement-body { grid-column: 4 / span 8; display: flex; flex-direction: column; gap: 36px; }
.statement-big { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 3.8vw, 54px); line-height: 1.18; }
.statement-sub { font-size: 17px; line-height: 1.7; color: #C9D3CE; max-width: 620px; }

/* Panels */
.panels { display: flex; flex-wrap: wrap; }
.panel { flex: 1 1 320px; min-height: 560px; padding: 64px 48px; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; color: var(--cream); transition: filter 0.4s ease; }
.panel:hover { color: var(--cream); filter: brightness(1.08); }
.p1 { background: var(--forest); }
.p2 { background: var(--moss); }
.p3 { background: var(--eucalyptus); }
.num { font-size: 14px; color: #C9D3CE; }
.panel-body { display: flex; flex-direction: column; gap: 20px; }
.panel-title { font-family: var(--serif); font-weight: 300; font-style: italic; font-size: 84px; line-height: 1; }
.panel-text { font-size: 16px; line-height: 1.7; color: #E6ECE8; max-width: 340px; }
.panel-link { font-size: 15px; font-weight: 500; color: var(--light-sand); }

/* About */
.about { background: var(--sand); padding: 144px 0; }
.about .grid { align-items: center; }
.portrait { grid-column: 1 / span 5; }
.portrait img { width: 100%; height: 600px; object-fit: cover; object-position: 34% 50%; background: #D3C8B1; }
.about-body { grid-column: 7 / span 6; display: flex; flex-direction: column; gap: 24px; }
.about-body h2 { font-family: var(--serif); font-weight: 400; font-size: 64px; line-height: 1.02; color: var(--deep); }
.about-body p { font-size: 17px; line-height: 1.75; color: #3A4440; }

/* Recently */
.recently { background: var(--warm); padding: 144px 0 48px; }
.recent-list { grid-column: 4 / span 9; display: flex; flex-direction: column; }
.recent-row { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: baseline; padding: 32px 0; border-top: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.recent-row:last-child { border-bottom: 1px solid var(--rule); }
a.recent-row:hover { color: var(--bronze); }
.recent-kind { flex: 0 0 64px; font-size: 14px; color: var(--muted); }
.recent-title { flex: 1 1 420px; font-family: var(--serif); font-size: 38px; line-height: 1.15; }
.recent-meta { flex: 0 1 260px; font-size: 15px; color: var(--muted); }

/* Writing circles */
.circles { background: var(--warm); padding: 96px 0 64px; }
.circles-card { grid-column: 4 / span 9; display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: flex-start; background: var(--white); padding: 56px; }
.circles-text { flex: 1 1 340px; display: flex; flex-direction: column; gap: 20px; }
.circles-text h2 { font-family: var(--serif); font-weight: 300; font-size: 48px; line-height: 1.08; color: var(--deep); }
.circles-text p { font-size: 16px; line-height: 1.75; color: #3A4440; }
.circles-form { flex: 1 1 320px; }
.circles-form form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; color: var(--ink); }
.field input[type=email], .field input[type=text], .field select { font-family: var(--sans); font-size: 16px; padding: 14px 16px; border: 1px solid #C9BFA9; background: var(--white); color: var(--ink); border-radius: 0; width: 100%; }
.field input:focus, .field select:focus { outline: 2px solid var(--bronze); outline-offset: 1px; }
.field.check { flex-direction: row; gap: 12px; align-items: flex-start; }
.field.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--bronze); flex: 0 0 auto; }
.field.check label { font-weight: 400; line-height: 1.6; color: #3A4440; }
.field-error { font-size: 14px; color: #A3361F; }
.form-status { font-size: 15px; color: var(--muted); line-height: 1.6; }
.form-thanks { font-family: var(--serif); font-size: 30px; line-height: 1.25; color: var(--deep); }
.button, .circles-form button { align-self: flex-start; font-family: var(--sans); background: var(--deep); color: var(--cream); border: none; padding: 17px 34px; font-size: 15px; font-weight: 600; letter-spacing: 0.02em; cursor: pointer; text-decoration: none; display: inline-block; }
.button:hover, .circles-form button:hover { background: var(--forest); color: var(--cream); }
.circles-form button[disabled] { opacity: 0.6; cursor: progress; }

/* Quote */
.quote { background: var(--warm); padding: 96px 0 160px; text-align: center; }
.quote p { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 52px; line-height: 1.25; color: var(--deep); }

/* Footer */
.footer { background: var(--white); padding: 128px 0 56px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: 96px; }
.footer-copy { display: flex; flex-direction: column; gap: 20px; max-width: 720px; }
.footer-copy h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 5vw, 76px); line-height: 1; color: var(--deep); }
.footer-email { font-size: 18px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--muted); border-top: 1px solid #E3DCCD; padding-top: 24px; }

/* Motion */
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: scale(1.1); } to { transform: scale(1); } }
.rise { animation: rise 1.8s ease-out 0.5s both; }
.rise-late { animation-delay: 1.2s; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.2s ease, transform 1.2s ease; }
.reveal.in { opacity: 1; transform: none; }
[data-text], [data-rich] { transition: opacity 0.8s ease; }
.pending [data-text], .pending [data-rich] { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .hero-photo.loaded { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Smaller screens */
@media (max-width: 900px) {
  .wrap, .wrap-narrow { padding: 0 24px; }
  .label, .statement-body, .recent-list, .circles-card, .portrait, .about-body { grid-column: 1 / -1; }
  .nav nav { gap: 20px; font-size: 14px; }
  .lang { padding-left: 16px; }
  .hero { height: auto; min-height: 100svh; }
  .hero-side { align-items: flex-start; text-align: left; }
  .statement, .about { padding: 96px 0; }
  .panel { min-height: 400px; padding: 48px 24px; }
  .panel-title { font-size: 64px; }
  .portrait img { height: 460px; }
  .about-body h2 { font-size: 48px; }
  .circles-card { padding: 32px 24px; }
  .quote p { font-size: 36px; }
}
/* Centers the accent on the u of Araújo in large headings (Cormorant sets it off to the right) */
.nw { white-space: nowrap; }
.ua { position: relative; display: inline-block; }
.ua::before { content: "\00B4"; position: absolute; left: 50%; top: 0.03em; transform: translateX(-85%); pointer-events: none; }

/* Phones: keep the menu on one line */
@media (max-width: 640px) {
  .nav nav { gap: 16px; font-size: 14px; flex-wrap: nowrap; }
  .nav nav a[href$="#contact"] { display: none; }
  .lang { padding-left: 12px; }
}
