/* Architite — public site */
:root {
  --ink: #121313;
  --ground: #ffffff;
  --muted: #62625f;
  --line: #e3e2de;
  --soft: #f4f3f0;
  --btn: #1e1e1e;
  --btn-ink: #f6f4ed;
  --error: #b3261e;
  --col: 860px;
  --gap: 5px;
  --radius: 12px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 3px;
}
.visually-hidden, .hp {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: var(--ground); padding: 8px 12px; z-index: 10; }

.page { padding-inline: max(16px, calc((100% - var(--col)) / 2)); }

/* ---------- header (neutral placeholder, to be redesigned) ---------- */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 32px; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.brand img { width: 62px; height: auto; filter: grayscale(1) brightness(.45); }
.site-title { font-size: 34px; font-weight: 600; letter-spacing: .04em; line-height: 1.1; }
.menu-toggle { display: none; }
.nav { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 24px; }
.nav a { text-decoration: none; }
.nav a:not(.btn):hover, .nav a[aria-current="page"]:not(.btn) { text-decoration: underline; text-underline-offset: 5px; }
.btn {
  display: inline-block; background: var(--btn); color: var(--btn-ink); border: 0; border-radius: 10px;
  padding: 8px 24px; font: inherit; line-height: 24px; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: #000; }

/* ---------- the stacked grids ---------- */
main { padding-block: 40px 0; }
.stack { display: flex; flex-direction: column; }
.grid { display: grid; gap: var(--gap); width: 100%; margin-block: var(--gap); }
.tile { position: relative; overflow: hidden; border-radius: var(--radius); min-height: 0; background: var(--soft); }
.tile > a { display: block; width: 100%; height: 100%; }
.grid img { display: block; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.tile-empty { display: block; width: 100%; height: 100%; }
.hover-tile .overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 8px; text-align: center;
  background: rgba(0, 0, 0, .25); color: #000; font-size: 1.2rem; font-weight: 600;
  opacity: 0; transition: opacity .25s ease; pointer-events: none;
}
.hover-tile img { transition: opacity .25s ease; will-change: opacity; transform: translateZ(0); }
.hover-tile:hover img { opacity: .75; }
.hover-tile:hover .overlay, .hover-tile:focus-within .overlay { opacity: 1; }

/* ---------- entries: project, post, page ---------- */
.entry-head { padding-block: 4vw 28px; }
.entry-head h1 { margin: 0; font-size: clamp(40px, 6vw, 72px); font-weight: 500; line-height: 1.1; letter-spacing: -.01em; text-wrap: balance; }
.eyebrow { margin: 0 0 12px; font-size: 14px; color: var(--muted); letter-spacing: .04em; }
.eyebrow a { text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.subtitle { margin: 14px 0 0; font-size: 19px; color: var(--muted); font-style: italic; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chips a { border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; font-size: 15px; text-decoration: none; }
.chips a:hover { border-color: var(--ink); }
.chips a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--ground); }

.facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 24px;
  margin: 32px 0 40px; padding: 24px 0; border-block: 1px solid var(--line);
}
.facts div { min-width: 0; }
.facts dt { font-size: 13px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.facts dd { margin: 4px 0 0; overflow-wrap: anywhere; }

.blocks > * + * { margin-top: 28px; }
.blocks > .grid + .grid { margin-top: var(--gap); }
.prose { max-width: 680px; font-size: 18px; line-height: 1.7; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 30px; font-weight: 500; line-height: 1.2; margin: 1.6em 0 .5em; text-wrap: balance; }
.prose h3 { font-size: 22px; font-weight: 600; margin: 1.4em 0 .4em; }
.prose h4 { font-size: 18px; font-weight: 600; margin: 1.2em 0 .3em; }
.prose a { text-underline-offset: 3px; }
.prose blockquote { margin: 1.4em 0; padding-left: 20px; border-left: 2px solid var(--ink); font-size: 21px; }
.block-image, .block-video { margin: 0; }
.block-image img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.block-image.size-medium { max-width: 50%; }
.block-image.size-small { max-width: 160px; }
.block-image.size-small img { border-radius: 8px; }
figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
.block-video video { width: 100%; border-radius: var(--radius); background: #000; }
.embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.entry-nav { margin-top: 72px; }
.entry-nav-labels { display: flex; justify-content: space-between; font-size: 15px; color: var(--muted); }
.preview-note, .notice { background: var(--soft); border-radius: 10px; padding: 12px 16px; font-size: 15px; }
.notice-error { color: var(--error); }
.back { margin-top: 48px; }
.empty { color: var(--muted); }

/* blog list */
.post-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.post-list li { border-bottom: 1px solid var(--line); }
.post-list a { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; padding-block: 20px; text-decoration: none; }
.post-thumb { display: block; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--soft); }
.post-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.post-meta { display: flex; flex-direction: column; gap: 4px; }
.post-meta time { font-size: 14px; color: var(--muted); }
.post-title { font-size: 22px; font-weight: 500; line-height: 1.25; }
.post-list a:hover .post-title { text-decoration: underline; text-underline-offset: 4px; }
.post-excerpt { color: var(--muted); font-size: 16px; }

/* contact */
.contact-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 20px; max-width: 860px; margin-top: 32px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 15px; font-weight: 500; }
.optional { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  font: inherit; font-size: 17px; color: var(--ink); background: var(--ground);
  border: 1px solid #c9c8c3; border-radius: 10px; padding: 10px 12px; width: 100%;
}
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: 14px; }
.contact-info { margin-top: 40px; color: var(--muted); }
.contact-info p { margin: 2px 0; }

/* footer */
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px 48px; margin-top: 120px; padding-block: 40px 16px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.5; }
.site-footer p { margin: 0 0 4px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-title { font-weight: 700; font-style: italic; letter-spacing: .08em; }
.credit { font-size: 14px; color: var(--muted); padding-block: 8px 40px; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .hover-tile img, .hover-tile .overlay { transition: none; }
}

@media (max-width: 781px) {
  .site-header { padding-block: 18px; position: relative; }
  .site-title { font-size: 26px; }
  .brand img { width: 44px; }
  .js .menu-toggle {
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 7px;
    width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  }
  .menu-toggle .bar { display: block; width: 26px; height: 2px; background: var(--ink); transition: transform .2s ease; }
  .open .menu-toggle .bar:nth-child(2) { transform: translateY(4.5px) rotate(45deg); }
  .open .menu-toggle .bar:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }
  .no-js .site-header { flex-wrap: wrap; }
  .js .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 5; flex-direction: column; align-items: flex-start; gap: 14px;
    background: var(--ground); padding: 8px 0 24px; border-bottom: 1px solid var(--line); font-size: 20px; }
  .js .open .nav { display: flex; }
  main { padding-top: 16px; }
  .grid { gap: 4px; }
  .tile { border-radius: 8px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .block-image.size-medium { max-width: 100%; }
  .contact-form { grid-template-columns: 1fr; }
  .post-list a { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; }
  .post-title { font-size: 19px; }
  .site-footer { margin-top: 72px; }
}
