/* Matches the Squarespace design (flatworm-indigo-4dc5.squarespace.com).
   Desktop layout is measured on a 1440px canvas; 1 design px = var(--u). */
:root {
  --u: calc(100vw / 1440);
  --light: #ebeaeb;
  --taupe: #5c5751;
  --charcoal: #383838;
  --ink: #383838;
  --white: #ffffff;
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --body: "Epilogue", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--light);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, p { margin: 0; font-weight: 400; }
h1, h2 { font-family: var(--display); text-transform: uppercase; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #000; color: #fff; padding: 8px 14px; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(14 * var(--u)) calc(29 * var(--u));
}
.site-header .logo img { width: calc(220 * var(--u)); height: auto; }
.nav a { font-size: 16px; text-decoration: none; padding-bottom: 2px; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.menu-btn, .nav .close { display: none; }

/* ---------- Absolutely-placed desktop canvas ---------- */
.canvas { position: relative; }
.canvas > * { position: absolute; }
.big { font-size: max(16px, calc(22.912 * var(--u))); line-height: 1.5; }
.u-link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.12em; }
.u-link:hover { opacity: .75; }
img.cover { object-fit: cover; }

/* Home: hero */
.hero { background: var(--light); height: calc(1384 * var(--u)); }
.hero h1 { left: calc(29 * var(--u)); top: calc(212 * var(--u)); z-index: 2;
  font-size: calc(170.2 * var(--u)); line-height: 1; white-space: nowrap; }
.hero .hero-img { left: calc(726 * var(--u)); top: calc(253 * var(--u)); width: calc(628 * var(--u)); height: calc(966 * var(--u)); z-index: 1; }
.hero .intro { left: calc(87 * var(--u)); top: calc(620 * var(--u)); width: calc(570 * var(--u)); }
.hero .intro p + p { margin-top: 16px; }
.hero .sig { left: calc(726 * var(--u)); top: calc(1230 * var(--u)); width: calc(628 * var(--u)); }
.hero .sig h2 { font-size: max(28px, calc(47.104 * var(--u))); line-height: 1.11; margin-top: calc(7 * var(--u)); }

/* Home: select works */
.works { background: var(--taupe); color: var(--white); height: calc(1804 * var(--u)); }
.works h2 { font-size: max(28px, calc(47.104 * var(--u))); line-height: 1.11; }
.works .title { left: calc(29 * var(--u)); top: calc(47 * var(--u)); }
.works .thumb { top: calc(251 * var(--u)); width: calc(221 * var(--u)); height: calc(152 * var(--u)); }
.works .t1 { left: calc(87 * var(--u)); }
.works .t2 { left: calc(493 * var(--u)); }
.works .t3 { left: calc(958 * var(--u)); }
.works .t4 { left: calc(1190 * var(--u)); }
.works .clients { left: calc(145 * var(--u)); top: calc(414 * var(--u)); z-index: 2;
  font-size: calc(67.84 * var(--u)); line-height: 1.056; }
.works .dress { left: calc(29 * var(--u)); top: calc(902 * var(--u)); width: calc(570 * var(--u)); height: calc(854 * var(--u)); }
.works .blurb { left: calc(765 * var(--u)); top: calc(918 * var(--u)); width: calc(606 * var(--u)); }
.works .more { left: calc(725 * var(--u)); top: calc(1459 * var(--u)); }

/* Home: contact */
.contact { background: var(--charcoal); color: var(--white); height: calc(594 * var(--u)); }
.contact h2 { left: calc(29 * var(--u)); top: calc(120 * var(--u)); font-size: max(28px, calc(47.104 * var(--u))); line-height: 1.11; }
.contact .mail { left: calc(29 * var(--u)); top: calc(204 * var(--u)); text-decoration: none; }
.contact .mail:hover { text-decoration: underline; }

/* Footer */
.site-footer { background: var(--light); height: calc(270 * var(--u)); }
.site-footer > a { left: calc(29 * var(--u)); top: calc(90 * var(--u)); }
.site-footer img { width: calc(337 * var(--u)); height: auto; }

/* Select Works page */
.page-white { background: var(--white); }
.sw { background: var(--white); height: calc(2738 * var(--u)); }
.sw h1 { left: calc(29 * var(--u)); top: calc(136 * var(--u)); color: #000;
  font-size: max(28px, calc(47.104 * var(--u))); line-height: 1.11; }
.sw .label { left: calc(29 * var(--u)); }
.sw .l1 { top: calc(340 * var(--u)); }
.sw .l2 { top: calc(1236 * var(--u)); }
.sw .l3 { top: calc(1887 * var(--u)); }
.sw .i1 { left: calc(784 * var(--u)); top: calc(218 * var(--u)); width: calc(628 * var(--u)); height: calc(681 * var(--u)); }
.sw .i2 { left: calc(725 * var(--u)); top: calc(1032 * var(--u)); width: calc(686 * var(--u)); height: calc(803 * var(--u)); }
.sw .i3 { left: calc(784 * var(--u)); top: calc(1887 * var(--u)); width: calc(628 * var(--u)); height: calc(803 * var(--u)); }

/* ---------- Mobile: stacked layout like Squarespace's phone view ---------- */
@media (max-width: 767px) {
  .canvas { height: auto !important; padding: 0 24px; }
  .canvas > * { position: static; width: auto !important; height: auto !important; }

  .site-header { position: absolute; padding: 12px 24px; }
  .site-header .logo img { width: 96px; }
  .nav { display: none; }
  .menu-btn { display: block; background: none; border: 0; padding: 8px 0; cursor: pointer; }
  .menu-btn span { display: block; width: 36px; height: 1px; background: var(--ink); margin: 7px 0; }
  .nav.open {
    display: flex; position: fixed; inset: 0; z-index: 30; background: var(--light);
    align-items: center; justify-content: center; font-size: 28px;
  }
  .nav.open a { font-size: 28px; }
  .nav.open .close { display: block; position: absolute; top: 14px; right: 24px; background: none; border: 0; font-size: 32px; cursor: pointer; color: var(--ink); }

  .hero { padding-top: 76px; padding-bottom: 40px; }
  .hero h1 { font-size: 15.2vw; white-space: normal; margin-bottom: 24px; }
  .hero .hero-img { aspect-ratio: 628 / 740; width: 100% !important; }
  .hero .intro { margin-top: 24px; }
  .hero .intro .big { font-size: 18px; }
  .hero .intro p:last-child { font-size: 14px; }
  .hero .sig { margin-top: 48px; }
  .hero .sig .big { font-size: 18px; }
  .hero .sig h2 { font-size: 33px; }

  .works { padding-top: 40px; padding-bottom: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .works > * { grid-column: 1 / -1; }
  .works .thumb { grid-column: auto; aspect-ratio: 221 / 152; width: 100% !important; margin-top: 0; }
  .works .title { margin-bottom: 18px; }
  .works h2 { font-size: 33px; }
  .works .clients { font-size: 43px; line-height: 1.08; margin: 56px 0; }
  .works .dress { aspect-ratio: 570 / 790; width: 100% !important; }
  .works .blurb { margin: 56px 24px 0; font-size: 14px; }
  .works .more { margin-top: 160px; }

  .contact { padding-top: 56px; padding-bottom: 500px; }
  .contact h2 { font-size: 33px; margin-bottom: 24px; }
  .contact .mail { font-size: 14px; }

  .site-footer { padding: 120px 24px 140px; }
  .site-footer img { width: 82vw !important; }

  .sw { padding-top: 90px; padding-bottom: 64px; }
  .sw h1 { margin-bottom: 32px; font-size: 33px; }
  .sw .label { margin: 32px 0 14px; }
  .sw img { width: 100% !important; aspect-ratio: 4 / 5; }
  .sw .i1 { order: 2; } .sw .l1 { order: 1; }
  .sw .l2 { order: 3; } .sw .i2 { order: 4; }
  .sw .l3 { order: 5; } .sw .i3 { order: 6; }
  .sw { display: flex; flex-direction: column; }
}
