* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  color: #222;
  background: #f4f4f2;
}
body.white { background: #fff; }
a { color: inherit; }

/* Title treatment: thin, wide-spaced caps */
.title {
  font-weight: 200;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  margin: 0;
}

/* Home: rounded, inset video frame */
.frame {
  position: fixed;
  inset: 14px;
  border-radius: 30px;
  overflow: hidden;
  background: #1b1b1d;
  color: #fff;
}
.video-placeholder {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 26px),
    radial-gradient(ellipse at 50% 70%, #3a3a3e 0%, #1b1b1d 70%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-placeholder span {
  border: 1px dashed rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.45);
  padding: 10px 18px;
  font-size: 12px;
  letter-spacing: 0.3em;
}
.frame .title {
  position: absolute;
  top: 52px;
  left: 0;
  right: 0;
  padding: 0 90px;
  text-align: center;
  font-size: clamp(18px, 3.4vw, 40px);
}
.enter {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.6);
  padding-bottom: 4px;
}

/* Hamburger */
.burger {
  position: fixed;
  top: 50px;
  right: 50px;
  z-index: 30;
  width: 34px;
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: #fff;
}
.inner .burger { color: #222; top: 30px; right: 34px; }
.menu-open .burger { color: #fff; }
.burger span {
  position: absolute;
  right: 0;
  height: 2px;
  background: currentColor;
  transition: transform 0.35s ease, opacity 0.2s ease, width 0.35s ease, top 0.35s ease;
}
.burger span:nth-child(1) { top: 4px; width: 100%; }
.burger span:nth-child(2) { top: 13px; width: 70%; }
.burger span:nth-child(3) { top: 22px; width: 100%; }
.menu-open .burger span:nth-child(1) { top: 13px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { top: 13px; transform: rotate(-45deg); }

/* Menu: a vertical column on the right, a quarter of the page wide, sliding down from the top */
.menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  width: 25vw;
  min-width: 250px;
  background: rgba(14, 14, 15, 0.92);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 110px 30px 60px;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.5s cubic-bezier(0.6, 0, 0.2, 1), visibility 0s linear 0.5s;
}
.home .menu {
  top: 14px;
  right: 14px;
  bottom: 14px;
  border-radius: 0 30px 30px 0;
}
.menu-open .menu {
  transform: translateY(0);
  visibility: visible;
  transition: transform 0.5s cubic-bezier(0.6, 0, 0.2, 1), visibility 0s;
}
.menu a {
  font-size: clamp(12px, 1.4vw, 15px);
  letter-spacing: 0.28em;
  text-decoration: none;
  padding-bottom: 5px;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}
.menu a:hover, .menu a.current { border-bottom-color: #fff; }

/* Inner pages */
.bar {
  padding: 34px 90px 30px;
  text-align: center;
  border-bottom: 1px solid #d6d6d2;
}
.title.small { font-size: clamp(13px, 1.8vw, 20px); color: #222; }
.page { max-width: 1080px; margin: 0 auto; padding: 56px 28px 90px; }
.page.narrow { max-width: 620px; }
.page.article { max-width: 720px; }
.heading {
  font-weight: 200;
  letter-spacing: 0.3em;
  font-size: clamp(22px, 3vw, 34px);
  text-align: center;
  margin: 0 0 18px;
}
.lede { text-align: center; color: #666; margin: 0 0 48px; }
.status { text-align: center; color: #888; font-size: 14px; margin: 0 0 30px; }
.box {
  background: #dcdcd8;
  border: 1px dashed #a9a9a4;
  border-radius: 14px;
  color: #8a8a85;
  font-size: 11px;
  letter-spacing: 0.3em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.white .box { background: #efefec; }

/* Blog feed */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
.post .box, .post .cover { aspect-ratio: 4 / 3; width: 100%; }
.post .cover { display: block; object-fit: cover; border-radius: 14px; }
.post-cover-link { display: block; text-decoration: none; }
.post .meta, .article .meta { font-size: 11px; letter-spacing: 0.2em; color: #888; margin: 16px 0 6px; text-transform: uppercase; }
.post h2 { font-weight: 300; font-size: 19px; margin: 0 0 8px; }
.post h2 a { text-decoration: none; }
.post p { margin: 0 0 10px; line-height: 1.6; color: #555; font-size: 14px; }
.post a.read { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; }
.more-wrap { text-align: center; margin-top: 48px; }

/* Single post */
.back { font-size: 21px; letter-spacing: 0.25em; text-decoration: none; color: #777; }
.post-title { font-weight: 300; font-size: clamp(26px, 4vw, 40px); line-height: 1.2; margin: 6px 0 28px; }
.post-cover { display: block; width: 100%; max-height: 420px; object-fit: cover; border-radius: 14px; margin-bottom: 32px; }
.post-body { line-height: 1.8; font-size: 17px; color: #333; }
.post-body h2, .post-body h3 { font-weight: 400; margin: 36px 0 12px; }
.post-body img { max-width: 100%; height: auto; border-radius: 10px; }
.post-body blockquote { margin: 28px 0; padding-left: 20px; border-left: 2px solid #222; font-style: italic; }

/* Bio */
.split { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; margin-top: 40px; }
.portrait { aspect-ratio: 3 / 4; }
.copy p { line-height: 1.8; margin: 0 0 18px; color: #444; }
.wide { height: 160px; margin-top: 30px; }

/* Contact */
.form label { display: block; font-size: 11px; letter-spacing: 0.25em; margin-bottom: 22px; }
.form input, .form textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid #b9b9b4;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  letter-spacing: normal;
}
.send {
  background: #111;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 13px 38px;
  letter-spacing: 0.3em;
  font-size: 12px;
  cursor: pointer;
}
.send:disabled { opacity: 0.5; cursor: default; }
.note { font-size: 12px; color: #999; margin-top: 14px; }
.social { text-align: center; margin-top: 56px; font-size: 11px; letter-spacing: 0.3em; color: #999; }

@media (max-width: 760px) {
  .frame { inset: 8px; border-radius: 22px; }
  .frame .title { top: 84px; padding: 0 24px; }
  .burger { top: 32px; right: 30px; }
  .inner .burger { top: 26px; right: 22px; }
  .menu { width: 70vw; min-width: 0; }
  .home .menu { top: 8px; right: 8px; bottom: 8px; border-radius: 0 22px 22px 0; }
  .bar { padding: 30px 70px 26px 22px; text-align: left; }
  .posts { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .menu, .menu-open .menu, .burger span { transition: none; }
}
/* Header stays put while scrolling, so the menu button is always readable */
.inner .bar { position: sticky; top: 0; z-index: 15; background: #f4f4f2; }
.white .bar { background: #fff; }
body.inner { height: auto; min-height: 100%; }

/* Footer on every page except Home */
body.inner { display: flex; flex-direction: column; min-height: 100vh; }
.inner .page { flex: 1 0 auto; width: 100%; }
.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px 24px;
  padding: 24px 34px;
  border-top: 1px solid #d6d6d2;
  font-size: 11px;
  letter-spacing: 0.25em;
  color: #6b6b6b;
}
.site-footer .footer-link { justify-self: start; color: inherit; text-decoration: none; }
.site-footer .footer-link:hover { color: #111; }
.site-footer .copyright { justify-self: end; margin: 0; text-transform: uppercase; }
.site-footer .social-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 26px; margin: 0; }
.site-footer .social-links a { display: inline-flex; align-items: center; color: inherit; text-transform: uppercase; text-decoration: none; }
.site-footer .social-links a:hover { color: #111; }
.site-footer .social-links img { display: block; height: 20px; width: auto; filter: grayscale(1); opacity: 0.65; }
.site-footer .social-links a:hover img { opacity: 1; }
.policy { line-height: 1.8; font-size: 16px; color: #333; margin-top: 30px; }
.policy h2 { font-weight: 400; font-size: 20px; margin: 34px 0 10px; }
.policy p { margin: 0 0 14px; }
@media (max-width: 760px) {
  .site-footer { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 26px 20px; }
  .site-footer .footer-link, .site-footer .copyright { justify-self: center; }
}
/* Post pages: date line sits close under the back link */
.article .back { display: inline-block; line-height: 1.2; }
.article .back + .status + #post .meta, .article .back + #post .meta, .article #post .meta:first-child { margin-top: 6px; }
.article .post-title { margin-top: 16px; }
/* Phones: back link fits one line */
@media (max-width: 760px) {
  .article .back { font-size: 15px; letter-spacing: 0.2em; white-space: nowrap; }
}
