/* ============================================================
   21 Knots — Design Tokens + Base Typography
   Photography-first, single-accent (teal), near-zero chrome.
   ============================================================ */

/* ---- Self-hosted variable Inter (uploaded as part of the brand kit).
        Inter is the cross-platform fallback that ships with the system;
        SF Pro Display / Text stay as the primary brand stack and will
        resolve natively on Apple platforms.                              */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/Inter-VariableFont_opsz_wght.ttf") format("truetype-variations"),
       url("fonts/Inter-VariableFont_opsz_wght.ttf") format("truetype");
}
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/Inter-Italic-VariableFont_opsz_wght.ttf") format("truetype-variations"),
       url("fonts/Inter-Italic-VariableFont_opsz_wght.ttf") format("truetype");
}

:root {
  /* -------------------------------------------------- COLOR */
  /* Brand & Accent — the single teal */
  --color-primary:           #1FB3A6;   /* Brand Teal — every interactive element */
  --color-primary-deep:      #178A80;   /* Hover / pressed state on light surfaces */
  --color-primary-soft:      #34BFB4;   /* The logo mark exact color */
  --color-primary-tint:      #E6F6F4;   /* Tinted backgrounds, callouts */
  --color-primary-on-dark:   #4FD1C5;   /* Links on dark tiles */
  --color-primary-focus:     #1FB3A6;   /* Focus ring */

  /* Surface */
  --color-canvas:            #ffffff;
  --color-canvas-parchment:  #f5f5f7;
  --color-surface-pearl:     #fafafc;
  --color-surface-tile-1:    #272729;
  --color-surface-tile-2:    #2a2a2c;
  --color-surface-tile-3:    #252527;
  --color-surface-black:     #000000;
  --color-surface-chip:      rgba(210, 210, 215, 0.64);

  /* Text */
  --color-ink:               #1d1d1f;
  --color-body:              #1d1d1f;
  --color-body-on-dark:      #ffffff;
  --color-body-muted:        #cccccc;
  --color-ink-muted-80:      #333333;
  --color-ink-muted-48:      #7a7a7a;

  /* Hairlines */
  --color-divider-soft:      rgba(0, 0, 0, 0.04);
  --color-hairline:          #e0e0e0;

  /* -------------------------------------------------- TYPE */
  --font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", system-ui, sans-serif;
  --font-body:    "SF Pro Text",    -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", system-ui, sans-serif;

  /* Weight ladder — 500 deliberately absent */
  --weight-light:    300;
  --weight-regular:  400;
  --weight-semibold: 600;
  --weight-bold:     700;

  /* -------------------------------------------------- SPACING (base 8) */
  --space-xxs: 4px;
  --space-xs:  8px;
  --space-sm:  12px;
  --space-md:  17px;
  --space-lg:  24px;
  --space-xl:  32px;
  --space-xxl: 48px;
  --space-section: 80px;

  /* -------------------------------------------------- RADIUS */
  --radius-none: 0;
  --radius-xs:   5px;
  --radius-sm:   8px;
  --radius-md:   11px;
  --radius-lg:   18px;
  --radius-pill: 9999px;
  --radius-full: 50%;

  /* -------------------------------------------------- ELEVATION */
  --shadow-product: rgba(0, 0, 0, 0.22) 3px 5px 30px 0;
  --backdrop-blur:  saturate(180%) blur(20px);

  /* -------------------------------------------------- MOTION */
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 160ms;
  --duration-base: 200ms;

  /* -------------------------------------------------- LAYOUT */
  --content-text:   980px;
  --content-grid:   1280px;
  --nav-global-h:   44px;
  --nav-sub-h:      52px;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: var(--weight-regular);
  line-height: 1.47;
  letter-spacing: -0.022em;
  color: var(--color-body);
  background: var(--color-canvas);
}

/* ============================================================
   Type scale
   ============================================================ */

.h1 { font-family: var(--font-display); font-size: 56px; font-weight: 600; line-height: 1.07; letter-spacing: -0.02em; margin: 0; }
.h2 { font-family: var(--font-display); font-size: 40px; font-weight: 600; line-height: 1.10; letter-spacing: -0.012em; margin: 0; }
.h3 { font-family: var(--font-body);    font-size: 28px; font-weight: 400; line-height: 1.14; letter-spacing: 0.007em; margin: 0; }
.h4 { font-family: var(--font-body);    font-size: 21px; font-weight: 600; line-height: 1.19; letter-spacing: 0.011em; margin: 0; }
p  { font-family: var(--font-body);    font-size: 17px; font-weight: 400; line-height: 1.47; letter-spacing: -0.022em; margin: 0; }

a { color: var(--color-primary); text-decoration: none; }
a:hover { opacity: 0.92; }
a.on-dark { color: var(--color-primary-on-dark); }

/* ============================================================
   Buttons
   ============================================================ */

.btn { border: none; cursor: pointer; font-family: var(--font-body);
  transition: transform var(--duration-fast) var(--ease-standard),
              opacity   var(--duration-fast) var(--ease-standard); }
.btn:active { transform: scale(0.95); }
.btn:focus-visible { outline: 2px solid var(--color-primary-focus); outline-offset: 2px; }

.btn-primary {
  background: var(--color-primary); color: #fff;
  padding: 11px 22px; border-radius: var(--radius-pill);
  font-size: 17px; font-weight: 400; letter-spacing: -0.022em;
}
.btn-secondary-pill {
  background: transparent; color: var(--color-primary);
  padding: 10px 21px; border: 1px solid var(--color-primary);
  border-radius: var(--radius-pill);
  font-size: 17px; font-weight: 400; letter-spacing: -0.022em;
}
.btn-dark-utility {
  background: var(--color-ink); color: #fff;
  padding: 8px 15px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 400; letter-spacing: -0.016em;
}
.btn-store-hero {
  background: var(--color-primary); color: #fff;
  padding: 14px 28px; border-radius: var(--radius-pill);
  font-size: 18px; font-weight: 300;
}

/* ============================================================
   Containers
   ============================================================ */

.tile-light      { background: var(--color-canvas);          color: var(--color-ink); padding: var(--space-section) 0; }
.tile-parchment  { background: var(--color-canvas-parchment);color: var(--color-ink); padding: var(--space-section) 0; }
.tile-tint       { background: var(--color-primary-tint);    color: var(--color-ink); padding: var(--space-section) 0; }
.tile-dark       { background: var(--color-surface-tile-1);  color: #fff;             padding: var(--space-section) 0; }
.tile-dark-2     { background: var(--color-surface-tile-2);  color: #fff;             padding: var(--space-section) 0; }

.utility-card {
  background: var(--color-canvas);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

/* ============================================================
   Nav
   ============================================================ */

.global-nav    { background: var(--color-surface-black); color: #fff; height: var(--nav-global-h); }
.sub-nav-frosted {
  background: rgba(245, 245, 247, 0.8);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  height: var(--nav-sub-h);
  border-bottom: 1px solid var(--color-hairline);
}

.product-shadow { filter: drop-shadow(var(--shadow-product)); }
