/* =========================================
   T&T Design & Development
   Editorial Architecture Studio
   Monochrome, grid-aligned, typographically precise
   ========================================= */

:root {
  /* Pure neutral palette -- no accents */
  --ink: #101010;
  --ink-2: #1c1c1c;
  --ink-60: #5c5c5c;
  --ink-40: #8a8a8a;
  --ink-20: #c9c9c9;
  --ink-10: #e4e4e4;
  --ink-5: #efefef;

  --paper: #f3f1ec;
  --paper-2: #e9e6df;
  --paper-3: #dedad1;

  --white: #ffffff;
  --offwhite: #fafaf7;

  /* Accent -- only for the rare moment */
  --rule: #1c1c1c;

  /* Radii */
  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-pill: 9999px;

  /* Fonts */
  --font-display: 'Instrument Serif', 'Canela', Georgia, serif;
  --font-body: 'Inter', 'Helvetica Neue', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;

  /* Type scale - sharper */
  --t-micro: 11px;
  --t-xs: 13px;
  --t-sm: 14px;
  --t-base: 16px;
  --t-lg: clamp(18px, 1.1vw + 14px, 22px);
  --t-xl: clamp(24px, 2vw + 16px, 36px);
  --t-2xl: clamp(36px, 3vw + 24px, 56px);
  --t-3xl: clamp(56px, 5vw + 24px, 96px);
  --t-display: clamp(72px, 8vw + 24px, 160px);

  /* Spacing - 8pt grid */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --s-20: 80px;
  --s-24: 96px;
  --s-32: 128px;
  --s-40: 160px;

  /* Containers */
  --gutter: clamp(20px, 4vw, 48px);
  --max-w: 1440px;

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 260ms var(--ease-out);
  --t-slow: 800ms var(--ease-out);
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

ul, ol {
  list-style: none;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

/* Utilities */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rule {
  height: 1px;
  background: var(--ink);
  border: none;
  margin: 0;
}

.rule--faint {
  background: var(--ink-20);
}

/* Label block -- reusable */
.label {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.label::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--ink);
  border-radius: 50%;
  flex-shrink: 0;
}

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
