/* ==========================================================================
   Eden Saedi Photography: shared look for the site and the studio.
   Night-game black, chalk white, tally-light orange.
   ========================================================================== */

:root {
  --ink: #0a0a09;
  --ink-2: #121211;
  --ink-3: #1b1b19;
  --chalk: #f1efe8;
  --chalk-2: #e3e0d6;
  --muted: #8d8b84;
  --dim: #5f5e59;
  --line: rgba(241, 239, 232, 0.12);
  --line-2: rgba(241, 239, 232, 0.24);
  --tally: #ff4d1c;
  --tally-2: #ff7046;
  --tally-soft: rgba(255, 77, 28, 0.14);

  --display: 'Archivo', 'Arial Narrow', 'Helvetica Neue', system-ui, sans-serif;
  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --container: 84rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(5rem, 3rem + 7vw, 9.5rem);
  --header-h: 5rem;
  --radius: 6px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 40px -12px rgba(0, 0, 0, 0.6), 0 50px 100px -30px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}
body {
  background: var(--ink);
  color: var(--chalk);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
ul[role='list'], ol[role='list'] { list-style: none; padding: 0; }
[hidden] { display: none !important; }
::selection { background: var(--tally); color: var(--ink); }
:focus-visible { outline: 2px solid var(--tally); outline-offset: 3px; border-radius: 4px; }

.i { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- type ---------- */
.display {
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 62%;
  font-variation-settings: 'wdth' 62;
  text-transform: uppercase;
  line-height: 0.86;
  letter-spacing: -0.005em;
}
.display em, .serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  font-variation-settings: normal;
  text-transform: none;
  letter-spacing: -0.02em;
}
.display em { color: var(--tally); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.mono { font-family: var(--mono); letter-spacing: 0.04em; }

.h2 { font-size: clamp(3.4rem, 1.6rem + 7vw, 8rem); margin-top: 1rem; }

/* recording light */
.rec {
  position: relative;
  display: inline-block;
  width: 0.62em;
  height: 0.62em;
  flex: none;
  border-radius: 50%;
  background: var(--tally);
  box-shadow: 0 0 0 0 rgba(255, 77, 28, 0.5);
  animation: rec 1.6s var(--ease) infinite;
}
@keyframes rec {
  0% { box-shadow: 0 0 0 0 rgba(255, 77, 28, 0.55); }
  70% { box-shadow: 0 0 0 0.6em rgba(255, 77, 28, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 77, 28, 0); }
}

/* ---------- focus brackets (the viewfinder corners) ---------- */
.brackets {
  --c: var(--chalk);
  --l: 18px;
  --t: 2px;
  position: absolute;
  inset: 12px;
  pointer-events: none;
  background:
    linear-gradient(var(--c) 0 0) top left / var(--l) var(--t),
    linear-gradient(var(--c) 0 0) top left / var(--t) var(--l),
    linear-gradient(var(--c) 0 0) top right / var(--l) var(--t),
    linear-gradient(var(--c) 0 0) top right / var(--t) var(--l),
    linear-gradient(var(--c) 0 0) bottom left / var(--l) var(--t),
    linear-gradient(var(--c) 0 0) bottom left / var(--t) var(--l),
    linear-gradient(var(--c) 0 0) bottom right / var(--l) var(--t),
    linear-gradient(var(--c) 0 0) bottom right / var(--t) var(--l);
  background-repeat: no-repeat;
  transition: inset 0.5s var(--ease-out), opacity 0.4s var(--ease);
}

/* ---------- buttons (fill slides up on hover) ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  padding: 0.85em 1.3em;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease-out), color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
  will-change: transform;
}
.btn .i { transition: transform 0.45s var(--ease-out); }
.btn:hover .i:last-child { transform: translateX(4px); }
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: translateY(101%);
  border-radius: inherit;
  transition: transform 0.5s var(--ease-out);
}
.btn:hover::after { transform: translateY(0); }
.btn:disabled { opacity: 0.5; pointer-events: none; }
.btn--tally { background: var(--tally); color: var(--ink); }
.btn--tally::after { background: var(--chalk); }
.btn--chalk { background: var(--chalk); color: var(--ink); }
.btn--chalk::after { background: var(--tally); }
.btn--ink { background: var(--ink); color: var(--chalk); }
.btn--ink::after { background: var(--chalk); }
.btn--ink:hover { color: var(--ink); }
.btn--ghost { color: var(--chalk); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn--ghost::after { background: var(--chalk); }
.btn--ghost:hover { color: var(--ink); }
.btn--lg { padding: 1.05em 1.7em; font-size: 1.08rem; }
.btn--xl { padding: 1.15em 2em; font-size: 1.2rem; }
.btn--sm { padding: 0.6em 0.95em; font-size: 0.9rem; }

.link-arrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 700;
  padding-block: 0.3em;
  white-space: nowrap;
}
.link-arrow::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: currentColor;
  transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}
.link-arrow:hover::after { transform: scaleX(0); transform-origin: left; }
.link-arrow .i { transition: transform 0.45s var(--ease-out); }
.link-arrow:hover .i { transform: translateX(4px); }

/* ---------- logo: corner brackets + name + recording dot ---------- */
.logo {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  padding: 0.5rem 0.7rem 0.45rem;
  line-height: 1;
}
.logo__corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 0 solid currentColor;
  transition: transform 0.5s var(--ease-out);
}
.logo__corner--tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.logo__corner--br { right: 0; bottom: 0; border-right-width: 2px; border-bottom-width: 2px; }
.logo:hover .logo__corner--tl { transform: translate(-3px, -3px); }
.logo:hover .logo__corner--br { transform: translate(3px, 3px); }
.logo__small {
  font-family: var(--mono);
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}
.logo__name {
  display: inline-flex;
  align-items: center;
  gap: 0.18em;
  margin-top: 0.22rem;
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 62%;
  font-variation-settings: 'wdth' 62;
  font-size: 1.7rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.logo__name .rec { width: 0.28em; height: 0.28em; margin-left: 0.08em; align-self: flex-end; margin-bottom: 0.14em; }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(1.25rem + env(safe-area-inset-bottom));
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  background: var(--chalk);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow);
  transform: translate(-50%, 160%);
  transition: transform 0.55s var(--ease-back);
  pointer-events: none;
  white-space: nowrap;
}
.toast.is-on { transform: translate(-50%, 0); }
.toast .i { color: var(--tally); }

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