/* Emily K. Schwartz — black & white, matching the original Squarespace site */
:root {
  --ink: #000000;
  --paper: #FFFFFF;
  --muted: #555555;
  --line: #000000;
  --field: #FAFAFA;
  --font: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(16px, 4vw, 56px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 17.5px; line-height: 1.8; letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { opacity: .65; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
h1, h2, h3, h4, p { margin: 0; }
.wrap { max-width: 1400px; margin: 0 auto; padding: 0 var(--pad); }

/* Header */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 30px; padding-bottom: 30px; }
.brand { font-size: clamp(24px, 2.3vw, 32px); font-weight: 500; letter-spacing: 0; line-height: 1.4; text-decoration: none; white-space: nowrap; }
.brand:hover { opacity: 1; }
.nav { display: flex; align-items: center; gap: 10px 22px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { text-decoration: none; font-size: 17.5px; line-height: 1.6; padding: 4px 0; background: linear-gradient(currentColor,currentColor) 0 100% / 0 1px no-repeat; transition: background-size .25s; }
.nav a:hover { opacity: 1; background-size: 100% 1px; }
.nav a[aria-current="page"] { background-size: 100% 1px; }
.social { display: flex; gap: 14px; margin-left: 10px; }
.social a { display: inline-flex; padding: 6px 0; background: none; }
.social a:hover { opacity: .6; }
.social svg { width: 16px; height: 16px; }
.menu-btn { display: none; background: none; border: 0; padding: 10px; margin: -10px; cursor: pointer; color: var(--ink); }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 26px; height: 1.5px; background: currentColor; position: relative; transition: transform .25s, opacity .25s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -8px; } .menu-btn span::after { top: 8px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(8px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1080px) {
  .menu-btn { display: block; position: relative; z-index: 30; }
  .brand { position: relative; z-index: 30; }
  .nav { position: fixed; inset: 0; z-index: 20; background: var(--paper); flex-direction: column; align-items: center; justify-content: center; gap: 18px; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .menu-open { overflow: hidden; }
  .nav a { font-size: 22px; text-align: center; max-width: 90vw; }
  .social { margin: 12px 0 0; gap: 26px; }
  .social svg { width: 22px; height: 22px; }
}

main { padding: clamp(32px, 5vw, 64px) 0 clamp(72px, 9vw, 128px); }

/* Home */
.home { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.lede { display: flex; flex-direction: column; gap: 1.35em; max-width: 780px; }
.lede p { font-size: clamp(20px, 1.75vw, 25.5px); font-weight: 500; line-height: 1.4; letter-spacing: 0; }
.photos { margin: 0; position: sticky; top: 32px; }
.fade { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #EEE; }
.fade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; opacity: 0; transition: opacity 1.4s ease; }
.fade img.on { opacity: 1; }
.photos figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--muted); letter-spacing: .02em; }
.dots { display: flex; gap: 7px; }
.dots button { width: 7px; height: 7px; padding: 0; border: 1px solid var(--ink); border-radius: 50%; background: transparent; cursor: pointer; }
.dots button.on { background: var(--ink); }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; max-width: 1060px; margin: clamp(16px, 4vw, 56px) auto 0; }
.about img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.about .lede p { font-size: clamp(19px, 1.5vw, 21.5px); line-height: 1.5; font-weight: 400; }

/* Work with Emily */
.work { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); }
.work h1 { font-size: clamp(42px, 5vw, 68px); font-weight: 500; letter-spacing: -.01em; line-height: 1.1; margin-bottom: 28px; }
.work .intro { margin-top: 2px; }
.work ul { margin: 14px 0 0; padding-left: 20px; }
.work li { padding: 3px 0; }
form { display: grid; gap: 20px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { display: grid; gap: 6px; font-size: 15px; line-height: 1.4; }
label small { color: var(--muted); font-size: 13px; margin-left: 4px; }
.legend { font-size: 15px; line-height: 1.4; margin-bottom: -10px; }
input, textarea { font: inherit; font-size: 16px; letter-spacing: 0; width: 100%; padding: 12px; background: var(--field); border: 1px solid #A9A9A9; border-radius: 0; color: var(--ink); }
input:focus, textarea:focus { outline: none; border-color: var(--ink); }
textarea { min-height: 120px; resize: vertical; }
.btn { justify-self: start; font: inherit; font-size: 16px; font-weight: 500; letter-spacing: .02em; color: var(--paper); background: var(--ink); border: 1px solid var(--ink); padding: 14px 28px; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--paper); color: var(--ink); opacity: 1; }
.form-note { font-size: 14px; color: var(--muted); }

/* Sports projects */
.page-title { text-align: center; font-size: clamp(40px, 4.4vw, 60px); font-weight: 500; letter-spacing: -.01em; line-height: 1.2; margin: clamp(24px, 6vw, 88px) 0 clamp(32px, 4vw, 56px); }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 32px; }
.proj { text-align: center; display: flex; flex-direction: column; gap: 14px; }
.proj .thumb { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.proj .thumb img { width: 100%; height: 100%; object-fit: cover; }
.proj .thumb.contain img { object-fit: contain; }
.proj h2 { font-size: 19px; font-weight: 500; line-height: 1.35; letter-spacing: 0; }
.proj p { font-size: 14.5px; line-height: 1.7; }

/* Press */
.press { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px) clamp(24px, 4vw, 56px); max-width: 980px; margin: clamp(24px, 6vw, 88px) auto 0; align-items: center; }
.press a { display: block; }
.press a:hover { opacity: .75; }
.press .wide { grid-column: 1 / -1; max-width: 640px; justify-self: center; width: 100%; }
.press img { width: 100%; height: auto; }
.press .logo { max-width: 300px; margin: 0 auto; }
.press .more { grid-column: 1 / -1; text-align: center; font-size: 22px; font-weight: 500; letter-spacing: 0; }

/* Results checkerboard */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--ink); }
.tile { aspect-ratio: 1.35 / 1; padding: clamp(20px, 2.4vw, 36px); display: flex; flex-direction: column; justify-content: space-between; gap: 16px; background: var(--paper); color: var(--ink); transition: background .3s, color .3s; }
.tile:nth-child(odd) { background: var(--ink); color: var(--paper); }
.tile b { font-size: clamp(48px, 5.6vw, 84px); font-weight: 500; letter-spacing: -.03em; line-height: 1; }
.tile b.words { font-size: clamp(24px, 2.3vw, 34px); letter-spacing: -.01em; line-height: 1.15; }
.tile span { font-size: 15.5px; line-height: 1.5; max-width: 30ch; }
.tile a { text-decoration: underline; }
.tile:hover { background: var(--paper); color: var(--ink); }
.tile:nth-child(even):hover { background: var(--ink); color: var(--paper); }
@media (max-width: 860px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile:nth-child(n) { background: var(--paper); color: var(--ink); }
  .tile:nth-child(4n+1), .tile:nth-child(4n) { background: var(--ink); color: var(--paper); }
  .tile:hover, .tile:nth-child(even):hover { background: inherit; color: inherit; }
  .tile { aspect-ratio: auto; min-height: 220px; }
}
@media (max-width: 520px) {
  .tiles { grid-template-columns: 1fr; }
  .tile:nth-child(n) { background: var(--paper); color: var(--ink); min-height: 180px; }
  .tile:nth-child(odd) { background: var(--ink); color: var(--paper); }
}

/* Video */
.vtop { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; margin-bottom: clamp(40px, 5vw, 64px); }
.clip { margin: 0; }
.clip video { width: 100%; background: #000; }
.clip figcaption { font-size: 14px; line-height: 1.5; color: var(--muted); margin-top: 10px; }
.vcopy { display: flex; flex-direction: column; gap: 1em; max-width: 620px; }
.vlede { font-size: clamp(24px, 2.3vw, 32px); font-weight: 500; letter-spacing: -.01em; line-height: 1.25; }
.vgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 3.5vw, 48px) clamp(20px, 2.5vw, 32px); }
.vcard { display: flex; flex-direction: column; gap: 8px; }
.vthumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; overflow: hidden; margin-bottom: 6px; }
.vthumb:hover { opacity: 1; }
.vthumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s; }
.vthumb:hover img { transform: scale(1.03); filter: brightness(.8); }
.vthumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: #FFF; }
.play::after { content: ""; position: absolute; left: 23px; top: 18px; border-style: solid; border-width: 11px 0 11px 17px; border-color: transparent transparent transparent #000; }
.vkind { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); line-height: 1.4; }
.vcard h3 { font-size: 19px; font-weight: 500; line-height: 1.35; letter-spacing: 0; }
.vroles { font-size: 14.5px; line-height: 1.6; color: var(--muted); }
@media (max-width: 860px) { .vtop { grid-template-columns: 1fr; } .clip { max-width: 340px; } .vgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .vgrid { grid-template-columns: 1fr; } }

/* Drawers on the home page */
.drawers { margin-top: clamp(64px, 8vw, 112px); border-bottom: 1px solid var(--line); }
.drawer { border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.drawer summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: clamp(20px, 2.4vw, 30px) 0; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary h2 { font-size: clamp(30px, 3.4vw, 48px); font-weight: 500; letter-spacing: -.01em; line-height: 1.15; }
.drawer summary:hover h2 { opacity: .65; }
.pm { position: relative; width: 24px; height: 24px; flex: 0 0 auto; }
.pm::before, .pm::after { content: ""; position: absolute; left: 0; top: 50%; width: 24px; height: 1.5px; background: var(--ink); transition: transform .3s; }
.pm::after { transform: rotate(90deg); }
.drawer[open] .pm::after { transform: rotate(0); }
.drawer__body { padding: 8px 0 clamp(48px, 6vw, 80px); animation: drop .4s ease; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.drawer__body.work { margin: 0; max-width: none; }
@media (prefers-reduced-motion: reduce) { .drawer__body { animation: none; } }

/* Footer */
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 40px; border-top: 1px solid #E2E2E2; font-size: 14px; color: var(--muted); }
.site-footer .social { margin: 0; }
.site-footer .social a { color: var(--ink); }

@media (max-width: 860px) {
  .home, .about, .work { grid-template-columns: 1fr; }
  .photos { position: static; max-width: 460px; }
  .grid4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .grid4, .row { grid-template-columns: 1fr; }
  .press { grid-template-columns: 1fr; }
  .press .logo { max-width: 220px; }
}
@media (prefers-reduced-motion: reduce) { .fade img { transition: none; } }
