:root { --ink: #f2f0ec; --mute: #8d8a85; --soft: #bdb9b3; --line: rgba(255,255,255,.12); --bg: #0b0b0c; --pad: clamp(32px, 3.4vw, 56px); }
@media (min-width: 1680px) { :root { --pad: 96px; } }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; background: var(--bg); color: var(--ink); font-family: "Afacad", system-ui, sans-serif; font-weight: 400; }
a { color: inherit; }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--pad); }
b { font-weight: 600; }

/* nav: same bar as the other pages */
nav { position: fixed; top: 0; left: 0; right: 0; height: 84px; z-index: 30; }
nav::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(11,11,12,.72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); opacity: 0; transition: opacity .3s; }
body.scrolled nav::before { opacity: 1; }
body.menu-open nav::before { opacity: 0; }
nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.wordmark { font-size: 32px; line-height: 40px; text-decoration: none; }
nav .wordmark { display: inline-flex; align-items: center; min-height: 40px; }
.wordmark img { display: block; width: clamp(112px, 12vw, 148px); height: auto; }
.links { display: flex; gap: 48px; font-size: var(--t-body); line-height: var(--t-line); }
.links a { color: var(--mute); text-decoration: none; }
.links a:is(:hover, :focus-visible, [aria-current]) { color: var(--ink); }
.burger { display: none; }

:root { --t-body: 18px; --t-line: 26px; --t-head: 44px; --prose-intro-gap: clamp(40px, 5vw, 70px); }

/* vision and team statement */
.vision { padding-top: clamp(136px, 14vw, 200px); text-align: center; }
.vision h1, .blog-post h1 { font-size: var(--t-head); line-height: 1.15; font-weight: 500; text-wrap: balance; }
.vision .prose, .blog-copy { font-size: var(--t-body); line-height: var(--t-line); color: var(--soft); text-align: justify; }
.vision .prose { max-width: 760px; margin: var(--prose-intro-gap) auto 0; }
.vision .prose + .prose, .blog-copy p + p { margin-top: 1em; }
.vision .prose b { color: var(--ink); font-weight: 600; }

footer { margin-top: 200px; border-top: 1px solid var(--line); padding: 48px 0; }
footer .wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
footer .tag { margin-top: 8px; max-width: 640px; font-size: var(--t-body); line-height: var(--t-line); color: var(--mute); }
footer small { font-size: var(--t-body); line-height: var(--t-line); color: var(--mute); white-space: nowrap; }
footer .fmeta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
footer .mail { font-size: var(--t-body); line-height: var(--t-line); color: var(--soft); text-decoration: none; }
footer .mail:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1100px) { :root { --pad: 32px; } }
@media (max-width: 720px) {
  :root { --pad: 16px; --t-body: 16px; --t-line: 24px; --t-head: 30px; }
  nav { height: 72px; }
  .wordmark { font-size: 26px; }
  .burger { display: block; position: relative; z-index: 21; width: 40px; height: 40px; margin-right: -8px; background: none; border: 0; cursor: pointer; }
  .burger span { position: absolute; left: 9px; right: 9px; height: 1.5px; background: var(--ink); transition: transform .3s, top .3s; }
  .burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 24px; }
  .burger[aria-expanded="true"] span:nth-child(1) { top: 19.5px; transform: rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { top: 19.5px; transform: rotate(-45deg); }
  .links { position: fixed; inset: 0; z-index: 20; flex-direction: column; justify-content: center; gap: 22px; padding: 0 24px;
    background: var(--bg); font-size: 40px; line-height: 48px; opacity: 0; pointer-events: none; transition: opacity .3s; }
  body.menu-open .links { opacity: 1; pointer-events: auto; }
  body.menu-open { overflow: hidden; }
  nav .wordmark { position: relative; z-index: 21; }

  footer { margin-top: 120px; }
  footer .wrap { flex-direction: column; align-items: flex-start; }
  footer .fmeta { align-items: flex-start; }
}
.blog { width: min(100%, 760px); margin: clamp(42px, 6vw, 62px) auto 0; }
#blog { scroll-margin-top: 104px; }
.blog h2 { margin-bottom: 12px; font-size: var(--t-body); line-height: var(--t-line); font-weight: 500; }
.blog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.blog-card { display: block; border: 1px solid var(--line); text-decoration: none; }
.blog-card:is(:hover, :focus-visible) { border-color: var(--ink); }
.blog-card img { display: block; width: 100%; height: auto; }

.blog-post { padding-top: clamp(148px, 15vw, 210px); }
.blog-post .wrap { max-width: calc(760px + var(--pad) * 2); }
.blog-toolbar { margin-bottom: clamp(48px, 5vw, 64px); }
.blog-back { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px;
  color: var(--soft); font-size: var(--t-body); line-height: var(--t-line); text-decoration: none; }
.blog-back:is(:hover, :focus-visible) { color: var(--ink); }
.blog-edit { min-height: 36px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 99px;
  color: var(--soft); background: transparent; font: inherit; font-size: 16px; cursor: pointer; }
.blog-edit:is(:hover, :focus-visible) { border-color: var(--soft); color: var(--ink); }
.blog-edit:disabled { opacity: .55; cursor: wait; }
.blog-save, .blog-save:is(:hover, :focus-visible) { color: var(--bg); background: var(--ink); border-color: var(--ink); }
.blog-edit-trigger { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 15; min-width: 44px; min-height: 44px; padding: 0; border: 0; background: var(--bg); color: var(--mute); font-size: 14px; }
.blog-post h1 { margin-bottom: var(--prose-intro-gap); text-align: center; }
.blog-copy { overflow-wrap: anywhere; }
.blog-editor:not([hidden]), .blog-editor label { display: grid; gap: 12px; }
.blog-editor { color: var(--soft); font-size: var(--t-body); }
.blog-editor input, .blog-editor textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 6px; background: var(--bg); color: var(--ink); font: inherit; line-height: 1.5; }
.blog-editor textarea { resize: vertical; }
.blog-editor-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.blog-status:not(:empty) { margin-top: 16px; color: var(--soft); font-size: var(--t-body); }

@media (max-width: 480px) {
  .blog-grid { grid-template-columns: 1fr; }
}
