/* Direction: architectural glazing studio — limewash paper, graphite frames,
   a glass-edge green accent, tall serif display over a precise grotesque. */
/* Completed by the platform from the short form: both modes, every
   palette token, each text-on-ground pair at its floor. To restyle, write the
   short form again (the decisions in one :root) and it is completed again. */

:root {
  --canvas: #f5f4ef;
  --surface: #fffefb;
  --surface-2: #eae8e1;
  --border: #d7d4ca;
  --border-strong: #adafab;
  --ink: #14191a;
  --muted: #5d6765;
  --accent: #2c6a5e;
  --accent-hover: #255a50;
  --accent-ink: #ffffff;
  --accent-text: #24584d;
  --accent-strong: #1b4740;
  --accent-soft: #e1ece8;
  --accent-border: #9bb6ae;
  --success: #2f7a52;
  --success-ink: #ffffff;
  --success-soft: #dde5dc;
  --success-strong: #2b704b;
  --warning: #9a6416;
  --warning-ink: #ffffff;
  --warning-soft: #eae3d5;
  --warning-strong: #835512;
  --danger: #a93b32;
  --danger-ink: #ffffff;
  --danger-soft: #ecded8;
  --danger-strong: #a93b32;
  --chart-1: #2c6a5e;
  --chart-2: #1a80b5;
  --chart-3: #583889;
  --chart-4: #ac4d70;
  --chart-5: #723e0c;
  --chart-6: #6d7e04;

  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --display-weight: 400;
  --display-tracking: -0.01em;
  --radius-card: 4px;
  --radius-btn: 2px;
  --radius-input: 2px;
  --card-pad: 1.5rem;
  --shadow-card: 0 1px 2px rgb(0 0 0 / 0.05), 0 22px 44px -32px rgb(0 0 0 / 0.4);
  --x-on-photo: #ffffff;
  --x-band: #121a19;
  --x-band-2: #1b2422;
  --x-rule: rgb(255 255 255 / 0.16);
  --x-pro-black: #1b1c1c;
  --x-pro-white: #f1f1ed;
  --x-pro-grey: #4a4f51;
  --x-pro-champagne: #c7a97b;
  --x-pro-bronze: #6d4a2d;
  --x-pro-silver: #b6babb;
  --x-pro-teak: #7a5331;
  --x-glass-clear: #cfe2e1;
  --x-glass-lowiron: #ddefe9;
  --x-glass-frosted: #e7ebea;
  --x-glass-reeded: #d2e4df;
  --x-glass-bronze: #c9b093;
  --x-glass-grey: #b7c0c2;
  --x-glass-acoustic: #c4d8dc;
  --x-glass-dgu: #bbd1d4;
  --x-glass-smart: #d6d7e3;
  --gradient-sheen: linear-gradient(118deg, rgb(255 255 255 / 0.5) 0%, rgb(255 255 255 / 0) 38%, rgb(255 255 255 / 0) 62%, rgb(255 255 255 / 0.28) 100%);
  --gradient-band: linear-gradient(160deg, #121a19 0%, #1d2a27 100%);
  --font-sans: "Inter", system-ui, sans-serif;
  --eyebrow-tracking: 0.08em;
}

html[data-theme="dark"] {
  --canvas: #060f0d;
  --surface: #1f2725;
  --surface-2: #121b19;
  --border: #29312f;
  --border-strong: #515756;
  --ink: #f5f4ef;
  --muted: #959895;
  --accent: #2c6a5e;
  --accent-hover: #4c8076;
  --accent-ink: #ffffff;
  --accent-text: #68948c;
  --accent-strong: #68948c;
  --accent-soft: #0e231f;
  --accent-border: #173831;
  --success: #2f7a52;
  --success-ink: #ffffff;
  --success-soft: #0f271c;
  --success-strong: #5d9879;
  --warning: #9a6416;
  --warning-ink: #ffffff;
  --warning-soft: #27220f;
  --warning-strong: #b0864a;
  --danger: #a93b32;
  --danger-ink: #ffffff;
  --danger-soft: #2a1915;
  --danger-strong: #c1726c;
  --chart-1: #3e7c6f;
  --chart-2: #2293ce;
  --chart-3: #8a6dc3;
  --chart-4: #c05f83;
  --chart-5: #b86a20;
  --chart-6: #809025;
}

/* AryaGlass — paper texture and the configurator drawing. Tokens only. */

.ag-paper {
  background-image: linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 44px 44px;
  background-position: center;
}

/* a pane of glass */
.ag-pane {
  position: relative;
  overflow: hidden;
}
.ag-pane::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-sheen);
  pointer-events: none;
}

/* reeded / fluted glass gets vertical flutes */
.ag-reeded::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(to right, rgb(255 255 255 / 0.45) 0 2px, rgb(0 0 0 / 0.05) 2px 9px);
  pointer-events: none;
}

/* the hinge edge of an opening leaf */
.ag-hinge-l { box-shadow: inset 4px 0 0 0 currentColor; }
.ag-hinge-r { box-shadow: inset -4px 0 0 0 currentColor; }
.ag-hinge-t { box-shadow: inset 0 4px 0 0 currentColor; }

/* swing arc over an opening leaf */
.ag-arc-l::before,
.ag-arc-r::before {
  content: "";
  position: absolute;
  top: 10%;
  bottom: 10%;
  width: 72%;
  border: 1px dashed currentColor;
  opacity: 0.6;
  pointer-events: none;
}
.ag-arc-l::before {
  left: 0;
  border-left: 0;
  border-radius: 0 100% 100% 0 / 0 50% 50% 0;
}
.ag-arc-r::before {
  right: 0;
  border-right: 0;
  border-radius: 100% 0 0 100% / 50% 0 0 50%;
}

/* option tiles — a radio button is .sr-only.peer right before the tile */
.ag-tile {
  @apply relative block cursor-pointer border border-border bg-surface px-3 py-2.5 text-left transition;
}
.ag-tile:hover { @apply border-accent/60; }
.peer:focus-visible + .ag-tile {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.peer:checked + .ag-tile {
  @apply border-accent bg-accent-soft;
}
.peer:checked + .ag-tile .ag-check { opacity: 1; }
.ag-check { opacity: 0; transition: opacity 0.14s ease; }

.ag-rule { border-color: var(--x-rule); }

details.ag-faq summary::-webkit-details-marker { display: none; }
details.ag-faq[open] summary .ag-faq-plus { transform: rotate(45deg); }
.ag-faq-plus { transition: transform 0.18s ease; }
