/* Anne: her house, not a gallery. Parchment ground, ballpoint blue, collected objects
   pinned at slight angles, and a typewriter voice for the small labels. */
:root {
  --parchment: #ede6d8;
  --limewash: #e3dacb;
  --hairline: #cdbfa8;
  --ink: #1f1b18;
  --ink-muted: #5e554c;
  --blue: #2f3e8e;
  --on-blue: #ede6d8;
  --corner: #2b2723;
  --photo-border: #f6f2ea;

  --serif: "EB Garamond", Garamond, "Times New Roman", serif;
  --type: "Courier Prime", "Courier New", Courier, monospace;

  --step-0: 1.125rem;   /* body */
  --step-1: 1.5rem;     /* lead */
  --step-2: 2.25rem;    /* section heading */
  --step-3: clamp(2.6rem, 6vw, 4.25rem); /* hero */
  --label: 0.8rem;

  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--step-0);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.label {
  font-family: var(--type);
  font-size: var(--label);
  letter-spacing: 0.04em;
  color: var(--blue);
  text-transform: lowercase;
}

/* header */
.site-head { padding-block: 22px; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-head .logo img { width: 112px; height: auto; }
.site-head nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-head nav a { font-family: var(--type); font-size: 0.85rem; color: var(--ink); text-decoration: none; }
.site-head nav a:hover { color: var(--blue); text-decoration: underline; }

/* hero */
.hero { padding-block: 24px 72px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.hero h1 {
  font-weight: 400;
  font-size: var(--step-3);
  line-height: 1.05;
  margin: 10px 0 18px;
  text-wrap: balance;
}
.hero h1 em { color: var(--blue); }
.hero p.lead { font-size: var(--step-1); line-height: 1.4; margin: 0 0 22px; max-width: 30ch; }
.hero .meta { font-family: var(--type); font-size: 0.9rem; color: var(--ink-muted); }

/* scrapbook photo */
.snapshot { position: relative; margin: 0 auto; width: min(100%, 440px); transform: rotate(-1.5deg); }
.snapshot .frame { background: var(--photo-border); padding: 14px; box-shadow: 0 3px 12px rgba(31, 27, 24, 0.18); }
.snapshot img { width: 100%; aspect-ratio: 617 / 743; object-fit: cover; }
.snapshot .tape { position: absolute; left: 50%; top: -14px; width: 120px; height: 32px; margin-left: -60px; background: rgba(214, 200, 172, 0.8); transform: rotate(-3deg); }
.snapshot figcaption { font-family: var(--type); font-size: 0.85rem; color: var(--ink); margin-top: 16px; }

/* story */
.story { background: var(--limewash); padding-block: 88px; }
.story .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 64px; align-items: start; }
.story .text { max-width: 62ch; display: flex; flex-direction: column; gap: 22px; }
.story .text p { margin: 0; }
.story .text p:first-of-type { font-size: var(--step-1); line-height: 1.45; }
.story h2, .wishes h2, .spirit h2, .visit h2 { font-weight: 400; font-size: var(--step-2); line-height: 1.15; margin: 8px 0 26px; text-wrap: balance; }

.tower { --w: 168px; --step: 138px; position: relative; height: calc(6 * var(--step) + 24px); }
.tower img {
  position: absolute;
  width: var(--w);
  bottom: calc(var(--i) * var(--step));
  left: calc(36px + var(--dx));
  transform: rotate(var(--r));
  filter: drop-shadow(0 5px 6px rgba(0, 0, 0, 0.22));
}

.felt { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; margin-top: 72px; }
.felt .photo { transform: rotate(1deg); background: var(--photo-border); padding: 12px; box-shadow: 0 3px 12px rgba(31, 27, 24, 0.16); }
.felt .photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.felt p { margin: 0 0 18px; }
.felt .handwriting { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.felt .handwriting img { height: 40px; width: auto; }

/* wishes */
.wishes { background: var(--blue); color: var(--on-blue); padding-block: 88px; }
.wishes .label { color: var(--on-blue); opacity: 0.8; }
.wishes .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.wishes p { max-width: 44ch; margin: 0; font-size: var(--step-1); line-height: 1.45; }
.wish-list { list-style: none; margin: 0; padding: 0; }
.wish-list li { display: flex; align-items: baseline; gap: 22px; padding: 14px 0; border-top: 1px solid rgba(237, 230, 216, 0.28); }
.wish-list li:last-child { border-bottom: 1px solid rgba(237, 230, 216, 0.28); }
.wish-list .nl { font-size: 2rem; font-style: italic; min-width: 7ch; }
.wish-list .en { font-family: var(--type); font-size: 0.9rem; opacity: 0.85; }

/* spirit */
.spirit { padding-block: 88px; }
.spirit .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
.spirit ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.spirit li strong { font-weight: 500; }
.call { background: var(--photo-border); padding: 30px 30px 26px; box-shadow: 0 3px 12px rgba(31, 27, 24, 0.12); transform: rotate(-0.8deg); align-self: start; position: relative; }
.call::before { content: ""; position: absolute; left: 50%; top: -12px; width: 90px; height: 24px; margin-left: -45px; background: rgba(205, 191, 168, 0.75); transform: rotate(2deg); }
.call h3 { font-weight: 400; font-size: 1.7rem; line-height: 1.2; margin: 0 0 12px; }
.call p { margin: 0 0 14px; }
.call .email { font-family: var(--type); font-size: 1rem; color: var(--blue); user-select: all; }

/* hope */
.hope { padding-block: 0 88px; }
.hope p { font-size: var(--step-2); line-height: 1.25; max-width: 28ch; margin: 0; text-wrap: balance; }

/* visit */
.visit { border-top: 1px solid var(--hairline); padding-block: 64px 40px; }
.visit .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.visit p { margin: 0; }
.visit .sig img { width: 160px; height: auto; }

.site-foot { padding-block: 20px 36px; }
.site-foot .wrap { font-family: var(--type); font-size: 0.8rem; color: var(--ink-muted); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* narrow screens */
@media (max-width: 860px) {
  .hero .wrap, .story .wrap, .felt, .wishes .wrap, .spirit .wrap, .visit .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero { padding-block: 8px 56px; }
  .story, .wishes, .spirit { padding-block: 64px; }
  .tower { --w: 104px; --step: 85px; max-width: 220px; }
}
