/* OfferFrame brand tokens — shared across all artboards */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  /* Surface tones — warm near-black */
  --of-bg:        oklch(0.14 0.005 60);   /* page */
  --of-surface:   oklch(0.18 0.006 60);   /* card */
  --of-surface-2: oklch(0.22 0.007 60);   /* raised */
  --of-line:      oklch(0.32 0.008 60);   /* hairline */
  --of-line-2:    oklch(0.42 0.008 60);   /* stronger hairline */

  /* Foreground */
  --of-fg:        oklch(0.96 0.005 80);   /* warm white */
  --of-fg-mute:   oklch(0.72 0.006 70);
  --of-fg-dim:    oklch(0.55 0.008 70);

  /* Single accent — sodium amber */
  --of-amber:     oklch(0.78 0.13 65);
  --of-amber-dim: oklch(0.58 0.11 65);

  /* Optional cool counter-accent (sparingly used for chrome / steel) */
  --of-steel:     oklch(0.78 0.02 240);

  /* Type */
  --of-sans: 'Geist', -apple-system, system-ui, sans-serif;
  --of-mono: 'Geist Mono', ui-monospace, 'SF Mono', monospace;
  --of-serif: 'Instrument Serif', 'Times New Roman', serif;

  /* Geometry */
  --of-radius: 4px;
  --of-radius-lg: 10px;
}

/* Bracket motif — viewfinder corners. Use anywhere we want "framed". */
.of-frame {
  position: relative;
}
.of-frame::before,
.of-frame::after,
.of-frame > .of-frame-br::before,
.of-frame > .of-frame-br::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--of-amber);
  border-style: solid;
  border-width: 0;
  pointer-events: none;
}
.of-frame::before  { top: -1px;    left: -1px;    border-top-width: 1.5px;    border-left-width: 1.5px; }
.of-frame::after   { top: -1px;    right: -1px;   border-top-width: 1.5px;    border-right-width: 1.5px; }
.of-frame > .of-frame-br::before { bottom: -1px; left: -1px;  border-bottom-width: 1.5px; border-left-width: 1.5px; }
.of-frame > .of-frame-br::after  { bottom: -1px; right: -1px; border-bottom-width: 1.5px; border-right-width: 1.5px; }

/* Base reset inside artboards */
.of-root {
  background: var(--of-bg);
  color: var(--of-fg);
  font-family: var(--of-sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
  font-size: 15px;
  line-height: 1.5;
  height: 100%;
  width: 100%;
  overflow: hidden;
}
.of-root *, .of-root *::before, .of-root *::after { box-sizing: border-box; }

.of-mono { font-family: var(--of-mono); font-feature-settings: normal; letter-spacing: 0; }
.of-serif-italic { font-family: var(--of-serif); font-style: italic; letter-spacing: -0.01em; }

/* Tiny tag — used for section labels, status pills */
.of-tag {
  font-family: var(--of-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--of-fg-mute);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.of-tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--of-amber);
  border-radius: 1px;
  flex: 0 0 auto;
}

/* Hairline dividers */
.of-hr { height: 1px; background: var(--of-line); border: 0; }

/* Shared placeholder image — diagonal stripes with caption */
.of-placeholder {
  background-color: var(--of-surface);
  background-image:
    repeating-linear-gradient(135deg,
      transparent 0 8px,
      oklch(0.22 0.006 60) 8px 9px);
  border: 1px solid var(--of-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--of-mono);
  font-size: 11px;
  color: var(--of-fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
}
.of-placeholder::after {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px dashed var(--of-line-2);
  pointer-events: none;
}

/* Buttons */
.of-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--of-sans);
  font-size: 14px; font-weight: 500;
  padding: 12px 20px;
  border-radius: var(--of-radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  letter-spacing: -0.005em;
  line-height: 1;
}
.of-btn-primary {
  background: var(--of-fg);
  color: var(--of-bg);
}
.of-btn-primary:hover { background: var(--of-amber); }
.of-btn-ghost {
  background: transparent;
  color: var(--of-fg);
  border-color: var(--of-line-2);
}
.of-btn-ghost:hover { border-color: var(--of-fg); }
.of-btn-amber {
  background: var(--of-amber);
  color: oklch(0.18 0.04 65);
}
.of-btn-amber:hover { background: oklch(0.82 0.13 65); }

/* Input */
.of-input {
  background: var(--of-bg);
  border: 1px solid var(--of-line);
  color: var(--of-fg);
  font-family: var(--of-sans);
  font-size: 14px;
  padding: 11px 14px;
  border-radius: var(--of-radius);
  width: 100%;
  outline: none;
  transition: border-color .15s;
}
.of-input:focus { border-color: var(--of-amber); }

/* Card */
.of-card {
  background: var(--of-surface);
  border: 1px solid var(--of-line);
  border-radius: var(--of-radius);
  padding: 24px;
}
