/* ---------------------------------------------------------
   Reset
--------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ---------------------------------------------------------
   Tokens
--------------------------------------------------------- */
:root {
  --paper: #f4f3f0;
  --ink: #111110;
  --rule: rgba(17, 17, 16, 0.14);
  --rail-w: 56px;
  --rail-bg: #111110;
  --rail-fg: #f4f3f0;

  --font-script: 'Caveat', cursive;
  --font-display: 'Bodoni Moda', 'Didot', 'Playfair Display', serif;
  --font-body: 'Cormorant Garamond', 'Georgia', serif;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------------------------------------------------------
   Side rails
--------------------------------------------------------- */
.rail {
  position: fixed;
  top: 0;
  bottom: 0;
  width: var(--rail-w);
  background: var(--rail-bg);
  color: var(--rail-fg);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rail--left { left: 0; }
.rail--right { right: 0; }

.rail__text {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.rail--right .rail__text { writing-mode: vertical-rl; transform: none; }

.rail__mark { font-size: 9px; opacity: 0.85; }
.rail__divider { opacity: 0.4; font-size: 10px; }
.rail__role { opacity: 0.75; }

.rail__link {
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0.75;
}
.rail__link:hover { opacity: 1; }
.rail__link[aria-current="page"] {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------------------------------------------------------
   Ruled sheet / main canvas
--------------------------------------------------------- */
.sheet {
  position: relative;
  margin: 0 var(--rail-w);
  min-height: 100vh;
  overflow: hidden;
}

.hero {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__signature {
  font-family: var(--font-script);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 4px;
}

.hero__title {
  font-family: var(--font-body);
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  margin: 0 0 44px;
  opacity: 0.85;
}

.hero__portrait {
  margin: 0 0 56px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
}

.hero__frame {
  display: block;
  width: 168px;
  height: 168px;
  overflow: hidden;
  background: var(--paper);
}

.hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  transform: scale(1.6);
  transform-origin: 35% 55%;
  filter: grayscale(1) contrast(1.05);
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin: 0 0 40px;
}

.hero__lede {
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.5;
  max-width: 30em;
  margin: 0 0 8px;
  opacity: 0.85;
}

.hero__location {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.55;
  margin: 0 0 64px;
}

/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */
@media (max-width: 640px) {
  :root { --rail-w: 34px; }
  .rail__text { font-size: 9px; gap: 6px; }
  .hero { padding: 40px 16px 80px; }
  .hero__frame { width: 128px; height: 128px; }
}
