/* ==========================================================================
   ASEMANI TRADING — Coming Soon
   Plain CSS, no external assets. System font stacks only.
   Palette: soft champagne ground, warm ivory light, deep brown type,
   dark copper accents (matching the copper finish of the A/T monogram).
   ========================================================================== */

:root {
  /* Ground */
  --champagne: #ece2c6;       /* primary background (also in tools/build-logo.py) */
  --champagne-deep: #e2d5b1;  /* edges */
  --ivory: #f7f1e1;           /* soft central light */

  /* Type */
  --brown-900: #2f1e12;       /* headline */
  --brown-700: #4a3323;       /* body */
  --brown-500: #6a4b35;       /* secondary details */

  /* Accent */
  --copper-700: #6b3a1f;
  --copper-500: #8f5530;

  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
    "URW Palladio L", "Hoefler Text", Baskerville, Georgia, "Times New Roman", serif;
  --font-sans: "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", Helvetica,
    Arial, system-ui, sans-serif;

  --frame-inset: clamp(.6rem, 2vw, 1.25rem);
}

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

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

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding:
    max(var(--frame-inset), env(safe-area-inset-top))
    max(var(--frame-inset), env(safe-area-inset-right))
    max(var(--frame-inset), env(safe-area-inset-bottom))
    max(var(--frame-inset), env(safe-area-inset-left));
  background-color: var(--champagne);
  background-image:
    radial-gradient(ellipse 75% 60% at 50% 40%, var(--ivory) 0%, rgba(247, 241, 225, 0) 70%),
    linear-gradient(180deg, var(--champagne) 0%, var(--champagne) 55%, var(--champagne-deep) 100%);
  color: var(--brown-700);
  font-family: var(--font-serif);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Fine copper keyline around the page */
body::before {
  content: "";
  position: absolute;
  inset: var(--frame-inset);
  border: 1px solid rgba(107, 58, 31, .28);
  pointer-events: none;
}

::selection { background: var(--copper-700); color: var(--ivory); }

:focus-visible {
  outline: 2px solid var(--copper-700);
  outline-offset: 3px;
}

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

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: clamp(2.5rem, 9vh, 5.5rem) 1.25rem 0;
}

/* Official A/T monogram. Source is 297x290 px: keep the display size at or
   below ~130 CSS px so it stays sharp on high-density screens. */
.brand__logo {
  display: block;
  width: clamp(84px, 15vw, 124px);
  height: auto;
}

.brand__name {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(.8rem, 1.6vw, .95rem);
  font-weight: 600;
  letter-spacing: .42em;
  /* cancel the trailing letter-space so the name is optically centred */
  margin-right: -.42em;
  color: var(--copper-700);
}

/* Copper rule with a small diamond, drawn in CSS (not in the document) */
.brand { position: relative; }

.brand::after {
  content: "";
  width: clamp(120px, 22vw, 220px);
  height: 9px;
  margin-top: clamp(.75rem, 3vh, 1.75rem);
  background: linear-gradient(90deg, transparent, var(--copper-500) 30%, transparent 45%, transparent 55%, var(--copper-500) 70%, transparent) center / 100% 1px no-repeat;
}

.brand::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1.5px;
  width: 6px;
  height: 6px;
  background: var(--copper-500);
  transform: translateX(-50%) rotate(45deg);
}

/* --------------------------------------------------------------------------
   Content
   -------------------------------------------------------------------------- */

.stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 64rem;
  padding: clamp(1.5rem, 4vh, 2.5rem) 1.25rem 2rem;
}

.headline {
  margin: 0;
  max-width: 18ch;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--brown-900);
  text-wrap: balance;
}

.lede {
  margin: clamp(1.1rem, 3vh, 1.6rem) 0 0;
  max-width: 36ch;
  font-family: var(--font-sans);
  font-size: clamp(1rem, 2vw, 1.2rem);
  letter-spacing: .02em;
  color: var(--brown-700);
}

.statement {
  margin: clamp(2rem, 6vh, 3.25rem) 0 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  color: var(--copper-700);
}

.descriptor {
  margin: clamp(1.4rem, 4vh, 2.1rem) 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: clamp(.7rem, 1.3vw, .8rem);
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--brown-500);
}

.descriptor li { padding: .2rem 0 .2rem .26em; }

/* Visual separators only; assistive technology reads three list items */
.descriptor li + li {
  margin-left: 1rem;
  padding-left: calc(1rem + .26em);
  border-left: 1px solid rgba(107, 58, 31, .55);
}

.footer {
  padding: 1rem 1.25rem clamp(1.5rem, 4vh, 2.25rem);
  font-family: var(--font-sans);
  font-size: .75rem;
  letter-spacing: .18em;
  color: var(--brown-500);
}

.footer p { margin: 0; }

/* --------------------------------------------------------------------------
   Small and short screens
   -------------------------------------------------------------------------- */

@media (max-width: 520px) {
  .brand__name { letter-spacing: .32em; margin-right: -.32em; }
  .descriptor { flex-direction: column; gap: .35rem; }
  .descriptor li + li { margin-left: 0; padding-left: .26em; border-left: 0; }
}

@media (max-height: 560px) and (orientation: landscape) {
  .brand { padding-top: 1.75rem; gap: .9rem; }
  .statement { margin-top: 1.25rem; }
  .descriptor { margin-top: 1rem; }
}

/* --------------------------------------------------------------------------
   Preferences and output
   -------------------------------------------------------------------------- */

/* The page has no animation. This guard keeps it that way if any is added. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Forced colours (e.g. Windows High Contrast): rely on system colours */
@media (forced-colors: active) {
  body { background-image: none; }
  body::before { border-color: CanvasText; }
  .brand::after { background: CanvasText; height: 1px; }
  .brand::before { display: none; }
  .descriptor li + li { border-left-color: CanvasText; }
}

@media print {
  body {
    min-height: 0;
    background: #fff;
    color: #000;
  }
  body::before { display: none; }
  .headline, .lede, .footer, .descriptor { color: #000; }
  .brand__name, .statement { color: #4a2814; }
  .brand__logo { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
