:root {
  --paper: #fbfaf7;
  --paper-warm: #f3efe6;
  --ink: #262523;
  --muted: #94918b;
  --line: #e5dfd4;
  --line-strong: #d5cabc;
  --gold: #b99155;
  --gold-deep: #8f6a35;
  --green: #14352f;
  --oxblood: #5d2424;
  --serif: Didot, "Bodoni 72", "Iowan Old Style", Baskerville, Georgia, serif;
  --sans: Avenir, "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--sans);
  background:
    linear-gradient(90deg, rgba(181, 150, 92, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(181, 150, 92, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 6.5rem 6.5rem;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  font-size: 6rem;
  line-height: 0.95;
}

h2 {
  font-size: 3rem;
  line-height: 1.05;
}

h3 {
  font-size: 1.45rem;
  line-height: 1.18;
}

p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

::selection {
  color: var(--paper);
  background: var(--gold-deep);
}

.scroll-rule {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--green));
}

.page-frame {
  width: min(100% - 3rem, 72rem);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 5rem;
  padding: 0 2rem;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 247, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: max-content;
  font-family: var(--serif);
  font-size: 1.2rem;
}

.brand-crest {
  display: grid;
  place-items: center;
  width: 2.6rem;
  aspect-ratio: 1;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-deep);
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.site-nav a {
  position: relative;
  color: #77736c;
  font-size: 0.78rem;
  line-height: 5rem;
  text-transform: uppercase;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 1.28rem;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: center;
  background: var(--gold);
  transition: transform 220ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

[data-egg] {
  cursor: crosshair;
}

p [data-egg] {
  font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  aspect-ratio: 1;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.05rem;
  height: 1px;
  margin: 0.25rem auto;
  background: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(44rem, calc(100vh - 10rem));
  padding: 5rem 0 3rem;
  text-align: center;
}

.kicker,
.cell-label,
.interest-list span,
.profile-lines,
.photo-cell span {
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.42em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero-email {
  margin: 0;
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  line-height: 1.5;
}

.hero-lockup {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 1.35rem;
  width: min(100%, 48rem);
}

.hero-lockup h1 {
  position: relative;
  font-size: 6.6rem;
  max-width: 100%;
}

.hero-lockup h1 span {
  display: inline;
}

.hero-lockup h1::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4rem;
  transform: skewX(-16deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
  animation: gildSweep 6s ease-in-out infinite;
}

.hero-lockup p {
  max-width: min(100%, 39rem);
}

.degree-line {
  display: block;
}

.hero-rule {
  width: min(38rem, 72vw);
  height: 1px;
  background:
    linear-gradient(90deg, transparent, var(--line-strong), transparent),
    linear-gradient(90deg, transparent 47%, var(--gold) 47% 53%, transparent 53%);
}

.monogram-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(32rem, 80vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  opacity: 0.36;
  pointer-events: none;
}

.seal,
.seal-axis,
.seal-needle,
.seal-core {
  position: absolute;
  inset: 0;
  margin: auto;
}

.seal {
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.seal-large {
  width: 100%;
  height: 100%;
  animation: breathe 8s ease-in-out infinite;
}

.seal-small {
  width: 58%;
  height: 58%;
  border-color: rgba(185, 145, 85, 0.58);
  animation: rotateSlow 26s linear infinite;
}

.seal-small::before,
.seal-small::after {
  content: "";
  position: absolute;
  top: -0.25rem;
  left: 50%;
  width: 1px;
  height: calc(100% + 0.5rem);
  background: var(--line-strong);
}

.seal-small::after {
  transform: rotate(90deg);
}

.seal-axis {
  background: var(--line);
}

.axis-horizontal {
  width: 100%;
  height: 1px;
}

.axis-vertical {
  width: 1px;
  height: 100%;
}

.seal-needle {
  width: 45%;
  height: 1px;
  transform-origin: 0% 50%;
  background: linear-gradient(90deg, var(--gold-deep), transparent);
  animation: sweep 10s ease-in-out infinite;
}

.seal-core {
  display: grid;
  grid-template-columns: 1fr 1fr;
  place-items: center;
  width: 7rem;
  height: 7rem;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-deep);
  background: rgba(251, 250, 247, 0.75);
  font-family: var(--serif);
  font-size: 2.2rem;
}

.seal-core span + span {
  border-left: 1px solid var(--line-strong);
}

.seal-core span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 50%;
}

.hero-meta {
  position: absolute;
  right: 0;
  bottom: 2rem;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.section {
  padding: 6rem 0;
  border-top: 1px solid var(--line);
}

.section-title {
  margin-bottom: 2.6rem;
}

.section-title.centered {
  text-align: center;
}

.section-title h2 {
  margin-top: 0.85rem;
}

.gilded-grid {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  background: var(--line);
}

.rooms-grid,
.work-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.triple-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  margin-top: 4rem;
}

.grid-cell {
  position: relative;
  display: flex;
  min-height: 13.5rem;
  flex-direction: column;
  justify-content: center;
  padding: 1.6rem;
  overflow: hidden;
  background: rgba(251, 250, 247, 0.95);
  transition:
    color 220ms ease,
    background 220ms ease;
}

.grid-cell::before {
  content: "";
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  border-top: 1px solid var(--gold);
  border-right: 1px solid var(--gold);
  opacity: 0;
  transform: translate(-0.4rem, 0.4rem);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.grid-cell:hover {
  color: var(--paper);
  background: var(--ink);
}

.grid-cell:hover::before {
  opacity: 1;
  transform: translate(0, 0);
}

.grid-cell:hover p {
  color: rgba(251, 250, 247, 0.68);
}

.grid-cell h3 {
  margin-top: 0.8rem;
}

.grid-cell p {
  margin-top: 0.55rem;
}

.statement {
  display: grid;
  justify-items: center;
  text-align: center;
}

.statement h2 {
  max-width: 12ch;
  margin-top: 0.85rem;
}

.statement p:last-child {
  max-width: 40rem;
  margin-top: 1.2rem;
}

.note-console {
  display: grid;
  grid-template-columns: minmax(14rem, 0.8fr) minmax(0, 1.1fr) auto;
  gap: 2rem;
  align-items: end;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.note-console h2 {
  margin-top: 0.75rem;
  font-size: 2.2rem;
}

.quiet-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0 1.1rem;
  border: 1px solid var(--line-strong);
  color: var(--gold-deep);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.local-note-list.is-empty {
  min-height: 5rem;
}

.local-note-list.is-empty::before {
  content: attr(data-empty);
  display: block;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.subpage {
  padding: 5.5rem 0 7rem;
}

.page-title {
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.page-title h1,
.contact-hero h1 {
  max-width: 14ch;
  font-size: 5rem;
}

.about-ledger {
  display: grid;
  grid-template-columns: 19rem minmax(0, 1fr);
  gap: 4rem;
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--line);
}

.profile-card {
  display: grid;
  align-content: space-between;
  min-height: 24rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(185, 145, 85, 0.08), transparent);
}

.profile-photo {
  position: relative;
  width: min(100%, 15rem);
  aspect-ratio: 4 / 5;
  margin: 0.9rem auto 1.4rem;
  border: 1px solid var(--gold);
  overflow: hidden;
  background: var(--paper-warm);
}

.profile-photo::after {
  content: "";
  position: absolute;
  inset: 0.55rem;
  border: 1px solid rgba(251, 250, 247, 0.7);
  pointer-events: none;
}

.profile-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 50%;
  filter: saturate(0.94) contrast(1.03);
}

.profile-lines {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  letter-spacing: 0.22em;
}

.essay {
  display: grid;
  align-content: center;
  gap: 1.35rem;
}

.essay p {
  color: #46423c;
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1.35;
}

.interest-list {
  border-top: 1px solid var(--line-strong);
}

.interest-list article {
  display: grid;
  grid-template-columns: 5rem minmax(15rem, 0.5fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: baseline;
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--line);
}

.interest-list span {
  letter-spacing: 0.22em;
}

.timeline {
  border-top: 1px solid var(--line-strong);
}

.timeline article {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  gap: 2.5rem;
  padding: 2.4rem 0;
  border-bottom: 1px solid var(--line);
}

.timeline time {
  color: var(--gold-deep);
  font-family: var(--serif);
  font-size: 1.25rem;
}

.timeline p {
  max-width: 42rem;
  margin-top: 0.7rem;
}

.timeline .note-category {
  display: inline-block;
  margin-bottom: 0.55rem;
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.delete-note {
  margin-top: 1rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.72rem;
  text-transform: uppercase;
  cursor: pointer;
}

.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 1.1fr);
  gap: 3rem;
  padding-top: 4rem;
}

.note-form {
  display: grid;
  gap: 1.1rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  background: rgba(251, 250, 247, 0.88);
}

.note-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--gold-deep);
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.note-form input,
.note-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 1rem;
  letter-spacing: 0;
  outline: none;
  resize: vertical;
}

.note-form input {
  min-height: 2.5rem;
}

.note-form textarea {
  min-height: 11rem;
  padding-top: 0.7rem;
}

.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.editor-actions button {
  min-height: 2.8rem;
  padding: 0 1rem;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  text-transform: uppercase;
  cursor: pointer;
}

.editor-actions button:first-child {
  color: var(--paper);
  border-color: var(--ink);
  background: var(--ink);
}

.editor-preview {
  min-width: 0;
}

.editor-preview > .kicker {
  display: block;
  margin-bottom: 1.5rem;
}

.photo-section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--line);
}

.photo-section-head {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.photo-section-head h2 {
  font-size: 3.2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.gallery-slot {
  position: relative;
  min-height: 24rem;
  margin: 0;
  background: rgba(251, 250, 247, 0.78);
  overflow: hidden;
}

.gallery-slot.is-empty::before,
.gallery-slot.is-empty::after {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid var(--line-strong);
  opacity: 0.72;
}

.gallery-slot.is-empty::after {
  border: 0;
  background:
    linear-gradient(135deg, transparent 49.8%, rgba(185, 145, 85, 0.44) 50%, transparent 50.2%),
    linear-gradient(45deg, transparent 49.8%, rgba(20, 53, 47, 0.22) 50%, transparent 50.2%);
}

.gallery-slot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-hero {
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.calling-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(15rem, 0.78fr) minmax(20rem, 1.22fr);
  gap: clamp(2rem, 5vw, 4.8rem);
  align-items: center;
  margin: 4rem auto 0;
  padding: clamp(2.2rem, 4vw, 3.4rem);
  border: 1px solid var(--line-strong);
  background: rgba(251, 250, 247, 0.82);
}

.calling-card::before {
  content: "";
  position: absolute;
  top: 2.25rem;
  bottom: 2.25rem;
  left: 39%;
  width: 1px;
  background: var(--line);
}

.calling-card-name,
.contact-links {
  position: relative;
  z-index: 1;
}

.calling-card h2 {
  max-width: 7ch;
  margin-top: 0.65rem;
  font-size: clamp(3.2rem, 6vw, 5.1rem);
  line-height: 0.95;
}

.contact-links {
  display: grid;
  border-top: 1px solid var(--line-strong);
}

.contact-links a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 4rem;
  padding: 0.9rem 2.4rem 0.9rem 0;
  border-bottom: 1px solid var(--line);
  color: #58544e;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.contact-icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 1.45rem;
  aspect-ratio: 1;
  color: var(--gold-deep);
}

.contact-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

.contact-icon-steam svg {
  stroke-width: 1.2;
}

.contact-links a::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.25rem;
  width: 0.8rem;
  height: 0.8rem;
  border-top: 1px solid var(--gold);
  border-right: 1px solid var(--gold);
  transform: translateY(-50%) rotate(45deg);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.3rem 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.egg-layer {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  overflow: hidden;
}

.egg-image {
  position: absolute;
  display: block;
  width: var(--w);
  height: auto;
  opacity: 0;
  filter: drop-shadow(0 0.7rem 0.7rem rgba(38, 37, 35, 0.14));
  animation-delay: var(--delay, 0ms);
  animation-duration: var(--duration, 5200ms);
  animation-fill-mode: forwards;
  animation-timing-function: linear;
  will-change: transform, opacity;
}

.egg-rochester-pennant {
  top: 0;
  left: 0;
  transform-origin: 18% 52%;
  animation-name: eggPennantDrift;
}

.egg-yale-logo {
  top: 0;
  left: var(--x);
  transform-origin: 50% 35%;
  animation-name: eggYaleFall;
}

@keyframes gildSweep {
  0%,
  42% {
    left: -5rem;
    opacity: 0;
  }
  52% {
    opacity: 0.72;
  }
  68%,
  100% {
    left: calc(100% + 1rem);
    opacity: 0;
  }
}

@keyframes rotateSlow {
  to {
    transform: rotate(360deg);
  }
}

@keyframes sweep {
  0%,
  100% {
    transform: rotate(-24deg);
  }
  50% {
    transform: rotate(34deg);
  }
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.025);
  }
}

@keyframes eggPennantDrift {
  0% {
    opacity: 0;
    transform: translate3d(var(--start-x), var(--start-y), 0) rotate(var(--r0)) scale(var(--s));
  }
  2%,
  82% {
    opacity: var(--o);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--end-x), var(--end-y), 0) rotate(var(--r3)) scale(var(--s));
  }
}

@keyframes eggYaleFall {
  0% {
    opacity: 0;
    transform: translate3d(0, var(--start-fall-y), 0) rotate(var(--r0)) scale(var(--s));
  }
  3.8%,
  78% {
    opacity: var(--o);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--fall-x), var(--end-fall-y), 0) rotate(var(--r3)) scale(var(--s));
  }
}

@media (max-width: 980px) {
  h1 {
    font-size: 4.5rem;
  }

  h2 {
    font-size: 2.5rem;
  }

  .hero-lockup h1 {
    font-size: 4.7rem;
  }

  .rooms-grid,
  .work-grid,
  .triple-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-ledger,
  .calling-card,
  .editor-layout,
  .note-console {
    grid-template-columns: 1fr;
  }

  .calling-card::before {
    display: none;
  }

}

@media (max-width: 760px) {
  .page-frame {
    width: min(100% - 1.5rem, 72rem);
  }

  .site-header {
    min-height: 4.4rem;
    padding: 0 1rem;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 4.4rem;
    right: 1rem;
    left: 1rem;
    display: grid;
    gap: 0;
    padding: 0.3rem 0.8rem;
    transform: translateY(-0.8rem);
    opacity: 0;
    visibility: hidden;
    border: 1px solid var(--line);
    background: rgba(251, 250, 247, 0.96);
    box-shadow: 0 1rem 3rem rgba(38, 37, 35, 0.1);
    transition:
      opacity 200ms ease,
      transform 200ms ease,
      visibility 200ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .site-nav a {
    line-height: 3rem;
    border-bottom: 1px solid var(--line);
  }

  h1,
  .page-title h1,
  .contact-hero h1 {
    font-size: 3.15rem;
  }

  h2 {
    font-size: 2.1rem;
  }

  .hero {
    min-height: 42rem;
    padding: 4.5rem 0 3.5rem;
  }

  .hero-lockup h1 {
    display: grid;
    gap: 0.1rem;
    font-size: 3.2rem;
    line-height: 0.9;
  }

  .hero-lockup h1 span {
    display: block;
  }

  .hero-lockup p {
    max-width: 20rem;
    font-size: 0.94rem;
  }

  .monogram-stage {
    width: 22rem;
  }

  .hero-meta {
    position: static;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 4rem;
  }

  .rooms-grid,
  .work-grid,
  .triple-grid {
    grid-template-columns: 1fr;
  }

  .interest-list article,
  .timeline article,
  .photo-section-head {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-slot {
    min-height: 20rem;
  }

  .contact-links {
    border-left: 0;
  }

  .essay p {
    font-size: 1.45rem;
  }

  .note-console {
    align-items: start;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
