/* tarateich.com — clean and minimal, forest/teal/sea/sage palette */
:root {
  --cream: #f5efe2; --cream-2: #ece3d0;
  --forest: #1f3a35; --forest-2: #284842; --teal: #1f6f6b; --teal-d: #174f4b; --trunk: #2a7a73;
  --sea: #9fc9c4; --sage: #9bb08a; --mustard: #d9a62e; --mustard-l: #e8c35a;
  --fox: #e07a2f; --fox2: #c95f1e; --coral: #e4877e; --plum: #6b4e8c; --lavender: #c8b8e0;
  --ink: #1d2b28;

  --bg: var(--cream); --surface: #fbf7ee; --text: #1d2b28; --muted: #56625e; --rule: rgba(29, 43, 40, .16);
  --accent: var(--teal); --accent-ink: #fff;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 22px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #132622; --surface: #1a312c; --text: #f2ecdf; --muted: #b3c0ba; --rule: rgba(242, 236, 223, .16);
    --accent: var(--mustard); --accent-ink: #1d2b28;
  }
}
:root[data-theme="dark"] {
  --bg: #132622; --surface: #1a312c; --text: #f2ecdf; --muted: #b3c0ba; --rule: rgba(242, 236, 223, .16);
  --accent: var(--mustard); --accent-ink: #1d2b28;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 1.0625rem; line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
a:hover { text-decoration-color: var(--mustard); }
:focus-visible { outline: 2px solid var(--mustard); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-optical-sizing: auto; font-variation-settings: "SOFT" 50, "WONK" 0; font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.9rem, 6.4vw, 5.4rem); font-weight: 400; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 400; }
h3 { font-size: 1.3rem; }
em { font-family: var(--display); font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; }
p { margin: 0 0 1em; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.eyebrow { display: block; font-size: .76rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.1rem; }

/* Header */
.site-header { padding: 26px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.logo { font-family: var(--display); font-size: 1.45rem; font-weight: 500; text-decoration: none; }
.nav { display: flex; gap: 26px; flex-wrap: wrap; }
.nav a { font-size: .95rem; text-decoration: none; color: var(--muted); padding: 4px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--mustard); }

/* Hero */
.hero { padding: 30px 0 90px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.hero h1 em { color: var(--teal); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero h1 em { color: var(--mustard); } }
:root[data-theme="dark"] .hero h1 em { color: var(--mustard); }
.lede { font-size: clamp(1.12rem, 1.8vw, 1.3rem); line-height: 1.65; max-width: 36ch; }
.lede .soft { color: var(--muted); }
.cta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 2rem; }
.btn { display: inline-block; text-decoration: none; font-weight: 600; padding: .85em 1.5em; border-radius: 999px; background: var(--accent); color: var(--accent-ink); transition: transform .2s ease; }
.btn:hover { transform: translateY(-2px); }
.link-arrow { font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--mustard); padding-bottom: 2px; }
.hero .portrait { margin: 0; justify-self: end; width: 100%; max-width: 420px; }
.hero .portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: 24px; box-shadow: 18px 18px 0 var(--sea); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero .portrait img { box-shadow: 18px 18px 0 var(--teal); } }
:root[data-theme="dark"] .hero .portrait img { box-shadow: 18px 18px 0 var(--teal); }


section { padding: 96px 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; margin-bottom: 48px; }
.section-head h2 { margin: 0; }
.section-head p { color: var(--muted); max-width: 42ch; justify-self: end; margin: 0; }

/* Lately */
.lately { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; list-style: none; margin: 0; padding: 0; }
.lately li { background: var(--surface); border-radius: var(--radius); padding: 26px 22px 24px; border: 1px solid var(--rule); transition: transform .25s ease; }
.lately li::before { content: ""; display: block; width: 32px; height: 4px; border-radius: 4px; background: var(--swatch, var(--teal)); margin-bottom: 22px; }
.c-sea { --swatch: var(--sea); } .c-sage { --swatch: var(--sage); } .c-lavender { --swatch: var(--lavender); } .c-mustard { --swatch: var(--mustard); } .c-coral { --swatch: var(--coral); }
.lately li:hover { transform: translateY(-4px); }
.lately h3 { font-size: 1.2rem; margin-bottom: .45em; }
.lately p { font-size: .95rem; color: var(--muted); margin: 0; }
.lately a { color: var(--text); }

/* Juniper */
.juniper { background: var(--forest); color: var(--cream); }
.juniper .eyebrow { color: var(--sea); }
.juniper h2 em { color: var(--mustard); }
.juniper .section-head p { color: rgba(245, 239, 226, .78); }
.juniper-grid { display: grid; grid-template-columns: 330px 1fr; gap: 56px; align-items: start; }
.facts { position: sticky; top: 28px; background: var(--forest-2); border: 1px solid rgba(245, 239, 226, .12); border-radius: var(--radius); padding: 30px; }
.facts h3 { font-size: 2rem; font-weight: 400; margin-bottom: .1em; }
.facts .sub { font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: var(--mustard); margin-bottom: 22px; }
.facts dl { margin: 0; }
.facts dl > div { padding: 14px 0; border-top: 1px solid rgba(245, 239, 226, .15); }
.facts dt { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(245, 239, 226, .65); margin-bottom: 4px; }
.facts dd { margin: 0; font-family: var(--display); font-size: 1.2rem; line-height: 1.35; }
.meter { display: flex; height: 8px; border-radius: 999px; overflow: hidden; margin: 10px 0 6px; background: rgba(245, 239, 226, .15); }
.meter span { display: block; height: 100%; }
.meter .gsd { width: 70%; background: var(--fox); }
.meter .husky { width: 30%; background: var(--sea); }
.meter .all { width: 100%; background: linear-gradient(90deg, var(--plum), var(--lavender)); }
.meter-key { font-family: var(--body); font-size: .82rem; color: rgba(245, 239, 226, .7); }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; }
.photos figure { margin: 0; display: flex; flex-direction: column; }
.photos figure:first-child { grid-column: span 2; grid-row: span 2; }
.photos img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; }
.photos figure:first-child img { aspect-ratio: auto; flex: 1; min-height: 0; }
.photos figcaption { font-family: var(--display); font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; font-size: .95rem; color: rgba(245, 239, 226, .8); padding-top: 8px; }

/* Interests */
.into { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule); }
.into > div { padding: 30px 28px 10px 0; }
.into > div + div { padding-left: 28px; border-left: 1px solid var(--rule); }
.into h3 { font-size: .78rem; font-family: var(--body); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.into ul { list-style: none; padding: 0; margin: 0; }
.into li { font-family: var(--display); font-size: 1.25rem; line-height: 1.5; }

/* Previously + writing */
.duo { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(26px, 4vw, 44px); position: relative; overflow: hidden; }
.card.deep { background: var(--teal); color: var(--cream); border-color: transparent; }
.card.deep .eyebrow { color: var(--sea); }
.card.deep p { font-family: var(--display); font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.45; max-width: 34ch; }
.card.deep .link-arrow { color: var(--cream); }
.card .link-arrow { display: inline-block; margin-top: .6rem; }
.card h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.card.light p { color: var(--muted); }

/* Writing list & article */
.posts { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.posts li { border-bottom: 1px solid var(--rule); }
.posts a { display: grid; grid-template-columns: 150px 1fr auto; gap: 20px; align-items: baseline; padding: 22px 4px; text-decoration: none; }
.posts a:hover .title { color: var(--teal); }
.posts .when { font-size: .85rem; color: var(--muted); letter-spacing: .04em; }
.posts .title { font-family: var(--display); font-size: 1.5rem; line-height: 1.2; transition: color .2s ease; }
.posts .arrow { color: var(--mustard); }
.article { padding: 30px 0 100px; }
.article .wrap { max-width: 740px; }
.article h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
.article .meta { font-size: .88rem; color: var(--muted); margin-bottom: 2.4rem; letter-spacing: .04em; }
.prose { font-size: 1.125rem; line-height: 1.8; }
.prose h3, .prose h5 { font-family: var(--display); font-weight: 500; font-size: 1.6rem; margin: 2.4rem 0 .8rem; line-height: 1.2; }
.prose blockquote { margin: 2.4rem 0; padding: 4px 0 4px 26px; border-left: 2px solid var(--mustard); font-family: var(--display); font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; font-size: 1.5rem; line-height: 1.4; }
.prose blockquote p { margin: 0; }
.back { margin-top: 3rem; display: flex; gap: 28px; flex-wrap: wrap; }

/* 404 */
.lost { text-align: center; padding: 40px 0 110px; }
.lost p { color: var(--muted); }

/* Footer */
.site-footer { background: var(--forest); color: var(--cream); padding: 56px 0 48px; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.site-footer .mark { font-family: var(--display); font-size: 1.3rem; }
.links { display: flex; flex-wrap: wrap; gap: 26px; list-style: none; margin: 0; padding: 0; }
.links a { text-decoration: none; color: rgba(245, 239, 226, .85); border-bottom: 1px solid rgba(245, 239, 226, .25); padding-bottom: 2px; }
.links a:hover { color: #fff; border-bottom-color: var(--mustard); }
.site-footer small { display: block; width: 100%; color: rgba(245, 239, 226, .55); font-size: .82rem; margin-top: 12px; }

/* Responsive */
@media (max-width: 1040px) {
  .lately { grid-template-columns: repeat(3, 1fr); }
  .into { grid-template-columns: repeat(2, 1fr); }
  .into > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .into > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 860px) {
  .hero .wrap, .juniper-grid, .duo, .section-head { grid-template-columns: 1fr; }
  .section-head p { justify-self: start; }
  .hero .portrait { justify-self: start; max-width: 360px; }
  .facts { position: static; }
  section { padding: 70px 0; }
  .hero { padding-bottom: 70px; }
}
@media (max-width: 620px) {
  .lately { grid-template-columns: 1fr 1fr; }
  .lately li:last-child { grid-column: span 2; }
  .photos { grid-template-columns: 1fr 1fr; }
  .into { grid-template-columns: 1fr; }
  .into > div, .into > div + div { padding: 24px 0 8px; border-left: 0; }
  .into > div + div { border-top: 1px solid var(--rule); }
  .posts a { grid-template-columns: 1fr auto; }
  .posts .when { grid-column: 1 / -1; }
  .nav { gap: 16px; }
  .wrap { padding: 0 18px; }
  .hero .portrait { max-width: calc(100% - 18px); }
}
