@font-face {
  font-family: "GT Eesti";
  src: url("../fonts/GT Eesti Pro Display Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "GT Eesti";
  src: url("../fonts/GT Eesti Display Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: block;
}

:root {
  --bg: #f2f2ee;
  --ink: #1a1a1a;
  --black: #000000;
  --thumb: #e1e1e1;

  --font: "GT Eesti", "Helvetica Neue", Arial, sans-serif;

  --col-side: 320px;
  --gap: 40px;
  --pad: 40px;
}

*,
*::before,
*::after { box-sizing: border-box; }

@media (prefers-reduced-motion: no-preference) {
  .app--enter { animation: pageFadeIn 0.55s ease both; }
}
@keyframes pageFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

html, body { height: 100%; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 1.25px;
  line-height: 21px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  text-decoration-skip-ink: none;
}

a { color: inherit; text-decoration: none; }
button {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
img, svg { display: block; }
p { margin: 0; }

.app {
  display: grid;
  grid-template-columns: var(--col-side) minmax(0, 1fr) var(--col-side);
  column-gap: var(--gap);
  padding: 0 var(--pad);
  align-items: start;
}

.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.rail--left { padding: var(--pad) 0; justify-content: space-between; }

.brand { display: flex; align-items: flex-start; justify-content: space-between; }
.brand__sdot { display: none; }
.brand__logo { display: block; width: 103px; flex-shrink: 0; }
.brand__logo img { width: 103px; height: 12px; object-fit: contain; }
.brand__tagline {
  margin-top: 8px;
  font-weight: 300;
  font-size: 15px;
  line-height: 24px;
  letter-spacing: 2px;
  color: var(--black);
  white-space: nowrap;
}

/* 28px from the dot's visible ink to the mailing copy: the artwork carries
   ~3.5px of transparent margin inside its 55px box. */
.rail__foot { display: flex; flex-direction: column; gap: 24.5px; }
.sdot { width: 50px; height: 55px; flex: 0 0 auto; }

.mailing { display: flex; flex-direction: column; gap: 20px; }
.mailing__copy { font-weight: 300; font-size: 12px; line-height: 21px; letter-spacing: 1.25px; }
.signup {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 45px;
  background: #fff;
  border-radius: 45px;
  padding: 0 20px 0 25px;
}
.signup-wrap { width: 100%; }
.signup__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  background: transparent;
  border: 0;
  outline: none;
  font-family: inherit;
  font-weight: 300;
  /* Off the 12px scale: iOS Safari zooms into focused fields under 16px. */
  font-size: 14px;
  letter-spacing: 1.25px;
  color: var(--black);
}
.signup__input::placeholder { color: var(--black); opacity: 1; }
.signup__input:disabled { opacity: 1; -webkit-text-fill-color: var(--black); }
.signup__arrow { width: 9px; flex: 0 0 auto; }
.signup__arrow svg { width: 9px; height: 9px; }
.is-busy .signup__arrow { opacity: 0.35; }
.signup__sent {
  display: none;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-right: 8px;
  flex: 0 0 auto;
}
.signup__check { display: none; width: 11px; height: 10px; flex: 0 0 auto; }
.is-sent .signup__sent { display: inline; }
.is-sent .signup__check { display: block; animation: signup-check-in 0.4s ease-in-out; }
.is-sent .signup__arrow { display: none; }
@keyframes signup-check-in { from { opacity: 0; } to { opacity: 1; } }
.signup__note {
  display: none;
  margin-top: 8px;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.5px;
}
.is-error .signup__note { display: block; }

/* Mobile sign-up card, mounted by armSignupPopup(); 10px off the screen edges. */
.signup-popup {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  background: var(--bg);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.1), 0 4px 16px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform: translateY(calc(100% + 20px + env(safe-area-inset-bottom, 0px)));
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.signup-popup.is-open { transform: translateY(0); }
.signup-popup__row { display: flex; align-items: flex-start; gap: 20px; }
.signup-popup__row .mailing__copy { flex: 1 1 0; min-width: 0; }
/* 8px glyph in a 24px hit area; the negative margins keep the glyph on the
   card's padding line and level with the copy's first line. */
.signup-popup__close {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin: -1px -8px 0 0;
  color: var(--black);
}
.signup-popup__close svg { width: 8px; height: 8px; }
@media (prefers-reduced-motion: reduce) {
  .signup-popup { transition: none; }
}

/* Capped at 640px so 3-across tiles are ~212px wide. */
.center { padding-top: 2px; min-width: 0; width: 100%; max-width: 640px; margin: 0 auto; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

/* Tiles */
.card { display: block; width: 100%; }
.card__thumb {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--thumb);
  overflow: hidden;
}
.thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
@media (hover: hover) and (pointer: fine) {
  .card__thumb { transition: filter 0.15s ease; }
  .card:hover .card__thumb { filter: brightness(0.97); }
}

.scroll-status { padding: 24px 0 8px; }
.load-error { padding: 40px 0; font-size: 13px; }

@media (max-width: 920px) {
  :root { --col-side: 260px; --gap: 28px; }
}

@media (max-width: 720px) {
  .app {
    grid-template-columns: 1fr;
    padding: 0 22px;
  }
  .rail { position: static; height: auto; }
  .rail--left { padding: 30px 0 0; }
  .rail--right { display: none; }
  .rail__foot { display: none; }
  .sdot { display: none; }
  .brand__sdot { display: block; width: 19.69px; height: 32px; }

  .center { padding-top: 30px; max-width: none; }
  .signup__input { font-size: 16px; }

  .grid { margin: 0 -22px; }
}
