/*
  AQS STYLE — shared stylesheet
  Concept: the page is the illuminated atelier mirror. A single cool-white LED
  outline frames the content; everything inside stays quiet.
  No JavaScript, no third-party requests. Fonts are self-hosted (OFL-1.1).
*/

/* ---------- Fonts ---------- */

@font-face {
  font-family: "Italiana";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/italiana-400-latin.v21.woff2?v=5079c87a4e") format("woff2");
}

@font-face {
  font-family: "Noto Serif Armenian";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/assets/fonts/noto-serif-armenian-300-armenian.v30.woff2?v=4f11aa8a45") format("woff2");
  unicode-range: U+0308, U+0530-058F, U+2010, U+2024, U+25CC, U+FB13-FB17;
}

@font-face {
  font-family: "Noto Serif Armenian";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/assets/fonts/noto-serif-armenian-300-latin.v30.woff2?v=bae3ebc3be") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Noto Serif Armenian";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/noto-serif-armenian-400-armenian.v30.woff2?v=4d59857008") format("woff2");
  unicode-range: U+0308, U+0530-058F, U+2010, U+2024, U+25CC, U+FB13-FB17;
}

@font-face {
  font-family: "Noto Serif Armenian";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/noto-serif-armenian-400-latin.v30.woff2?v=54af989f21") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */

:root {
  color-scheme: dark;

  /* Palette, taken from the atelier photograph */
  --concrete: #232427;      /* showroom wall */
  --concrete-deep: #1c1d20; /* floor shadow */
  --glass: #2a2b2f;         /* mirror surface */
  --ink: #eceef1;           /* primary text */
  --mute: #a5a8ae;          /* secondary text, 6:1 on --glass */
  --rule: rgb(236 238 241 / 0.13);
  --led: #f6f9ff;           /* LED strip */
  --led-rgb: 214 230 255;   /* LED glow */

  --display: "Italiana", "Didot", "Bodoni 72", "Bodoni MT", Georgia, serif;
  --text: "Noto Serif Armenian", "Sylfaen", Georgia, serif;

  --radius-mirror: 36px;
  --gutter: 16px;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background-color: var(--concrete);
  /* track lighting from above, nothing more */
  background-image: radial-gradient(120% 70% at 50% -10%, #2e2f33 0%, var(--concrete) 55%, var(--concrete-deep) 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--text);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding:
    max(12px, env(safe-area-inset-top))
    max(12px, env(safe-area-inset-right))
    max(12px, env(safe-area-inset-bottom))
    max(12px, env(safe-area-inset-left));
}

a {
  color: inherit;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- The mirror ---------- */

.mirror {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 24px);
  min-height: calc(100svh - 24px);
  max-width: 480px;
  margin: 0 auto;
  border-radius: var(--radius-mirror);
  background: rgb(42 43 47 / 0.72);
  padding: 0 20px;
}

/* The LED outline lives on its own layer so it can power on independently. */
.mirror::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  border: 1.5px solid var(--led);
  box-shadow:
    0 0 4px rgb(var(--led-rgb) / 0.75),
    0 0 18px rgb(var(--led-rgb) / 0.38),
    0 0 56px rgb(var(--led-rgb) / 0.16),
    inset 0 0 10px rgb(var(--led-rgb) / 0.22),
    inset 0 0 36px rgb(var(--led-rgb) / 0.06);
  pointer-events: none;
  animation: led-on 1.15s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.mirror > * {
  animation: content-in 0.7s ease-out 0.45s both;
}

@keyframes led-on {
  0% { opacity: 0; }
  14% { opacity: 0.7; }
  20% { opacity: 0.12; }
  34% { opacity: 0.9; }
  40% { opacity: 0.45; }
  100% { opacity: 1; }
}

@keyframes content-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .mirror::before,
  .mirror > * {
    animation: none;
  }
}

/* On wider screens the page becomes the mirror itself: a lit portrait panel. */
@media (min-width: 640px) and (min-height: 620px) {
  body {
    display: grid;
    place-items: center;
    padding: 32px;
  }

  .mirror {
    width: 440px;
    min-height: min(820px, calc(100svh - 64px));
    margin: 0;
    padding: 0 28px;
  }
}

/* ---------- Brand lockup ---------- */

.brand {
  padding-top: clamp(44px, 8svh, 88px);
  text-align: center;
}

.wordmark {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  line-height: 1;
}

.wordmark-name {
  display: block;
  font-size: clamp(2.75rem, 13vw, 3.5rem);
  letter-spacing: 0.035em;
  /* Italiana's capitals sit wide; keep the optical centre true */
  padding-left: 0.035em;
}

.tagline {
  margin: clamp(22px, 4svh, 36px) auto 0;
  max-width: 32ch;
  text-wrap: balance;
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  opacity: 0.88;
}

/* ---------- Links ---------- */

.links {
  margin-top: clamp(28px, 5svh, 48px);
}

.link-group + .link-group {
  margin-top: clamp(26px, 4svh, 40px);
}

/* Sub-brand names, set like the "ATELIER" line of the brand lockup. */
.group-title {
  margin: 0 0 10px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.55em;
  padding-left: 0.55em;
  text-transform: uppercase;
  text-align: center;
  color: var(--mute);
}

.links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.links li {
  border-bottom: 1px solid var(--rule);
}

.link {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  column-gap: 16px;
  min-height: 58px;
  padding: 10px 10px;
  text-decoration: none;
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
  border-radius: 14px;
  transition: background-color 160ms ease;
}

.link svg {
  width: 22px;
  height: 22px;
  justify-self: center;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.link-handle {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 46vw;
}

.link:hover {
  background-color: rgb(236 238 241 / 0.05);
}

.link:active {
  background-color: rgb(236 238 241 / 0.09);
}

.link:focus-visible,
.site-foot a:focus-visible,
.notice a:focus-visible {
  outline: 2px solid var(--led);
  outline-offset: 2px;
}

/* ---------- Footer (mirrors the line engraved under the mirror UI) ---------- */

.site-foot {
  margin-top: auto;
  padding: 40px 0 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-weight: 300;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  color: var(--mute);
}

.site-foot::before,
.site-foot::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.site-foot a {
  text-decoration: none;
  border-radius: 4px;
}

/* ---------- Notice pages (404) ---------- */

.notice {
  margin-top: clamp(36px, 7svh, 64px);
  text-align: center;
}

.notice p {
  margin: 0 0 24px;
  color: var(--mute);
}

.notice a {
  display: inline-block;
  padding: 14px 22px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  text-decoration: none;
}

.notice a:hover {
  background-color: rgb(236 238 241 / 0.05);
}

@media (max-width: 360px) {
  .mirror {
    padding: 0 14px;
  }

  .link {
    column-gap: 12px;
    padding: 12px 6px;
  }
}
