:root {
  color-scheme: light;
  background: #f3f0e9;
  color: #201e18;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  --paper: #f3f0e9;
  --surface: #fbf9f4;
  --ink: #201e18;
  --subtle: #5d5749;
  --stroke: #dcd4c3;
  --dark: #161410;
  --amber: #e8ad62;
  --error: #872e2b;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 280px; }
h1, h2, h3, p { margin: 0; }
p { line-height: 1.55; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: not-allowed; }
a { color: inherit; }
:focus-visible { outline: 3px solid #a76a27; outline-offset: 3px; }
.shell { width: min(100% - 3rem, 1180px); margin-inline: auto; }
.site-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #161410f5;
  color: #f8f1e3;
  border-bottom: 1px solid #fff1d018;
  backdrop-filter: blur(18px);
}
.bar-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.15rem; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-weight: 675; white-space: nowrap; letter-spacing: -.025em; }
.brand-icon {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid #9d774a;
  border-radius: 7px;
  background: #403021;
  color: #f0be80;
  font-size: .94rem;
}
.bar-links { display: flex; align-items: center; gap: clamp(.65rem, 3vw, 2rem); font-size: .82rem; }
.bar-links a { opacity: .85; text-decoration: none; white-space: nowrap; }
.bar-links a:hover { opacity: 1; }
.bar-links a[aria-current="page"] { color: #e9bd83; }
.bar-return { display: inline-flex; align-items: center; gap: .28rem; }
.hero {
  position: relative;
  overflow: clip;
  isolation: isolate;
  background: linear-gradient(110deg, #171410 48%, #302117 100%);
  color: #f7efe0;
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 66% center;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(0deg, #171410d9, #17141018 57%),
    linear-gradient(90deg, #171410 6%, #171410f0 30%, #17141080 60%, #17141011);
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: min(650px, 88svh);
  padding-block: clamp(4.5rem, 9.5vw, 8.25rem);
}
.hero-content { position: relative; z-index: 1; max-width: 760px; }
.eyebrow { margin-bottom: clamp(.95rem, 2.6vw, 2rem); color: #cdb89c; font-size: .8rem; font-weight: 700; letter-spacing: .095em; text-transform: uppercase; }
.hero h1 {
  display: grid;
  gap: .07em;
  letter-spacing: -.07em;
  font-size: clamp(2.7rem, 7.7vw, 7.9rem);
  line-height: .97;
  font-weight: 745;
  text-wrap: balance;
}
.hero-number {
  display: block;
  width: fit-content;
  font-size: clamp(5.1rem, 13.3vw, 12rem);
  font-weight: 785;
  letter-spacing: -.10em;
  line-height: .88;
  color: #f2b465;
  margin-bottom: .08em;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-number {
    background: linear-gradient(116deg, #fff0bd, #e5a04c 64%, #df8340);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}
.hero-lead { margin-top: clamp(1.3rem, 3vw, 2.25rem); color: #e1d4bd; font-size: clamp(1.02rem, 1.7vw, 1.37rem); max-width: 41ch; text-wrap: pretty; }
.hero-controls { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem 1.25rem; margin-top: 1.55rem; }
.hero-stamp { color: #bfb09a; font-size: .79rem; }
.hero-orbit {
  position: absolute;
  inset-inline-start: 37%;
  top: 50%;
  width: clamp(470px, 78vw, 1120px);
  aspect-ratio: 1;
  transform: translateY(-45%);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 16% 55%, #161410 1%, transparent 43%),
    repeating-radial-gradient(ellipse at 56% 44%, #b98a5521 0 1px, transparent 2px 19px),
    radial-gradient(ellipse at 54% 43%, #c77838e0 0%, #a45e35be 16%, #6c3a2aab 39%, #3e272283 56%, transparent 72%);
  mask-image: radial-gradient(ellipse, #000 32%, #000a 60%, transparent 74%);
  pointer-events: none;
  animation: orbit-enter 1s ease both;
}
@keyframes orbit-enter {
  from { opacity: .35; transform: translateY(-41%) scale(.96); }
  to { opacity: 1; transform: translateY(-45%) scale(1); }
}
.hero-credit {
  position: absolute;
  z-index: 3;
  right: max(1.1rem, calc((100% - 1180px) / 2));
  bottom: .8rem;
  color: #eee1cb;
  font-size: .69rem;
  text-underline-offset: .16em;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 44px;
  padding: .6rem 1.12rem;
  border: 1px solid transparent;
  border-radius: 100px;
  text-decoration: none;
  text-align: center;
  font-size: .88rem;
  font-weight: 685;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease;
}
.button-accent { background: var(--amber); border-color: var(--amber); color: #22180f; }
.button-accent:not(:disabled):hover { background: #f7c17b; border-color: #f7c17b; }
.button-line { background: transparent; border-color: #af9f80; color: var(--ink); }
.button-line:not(:disabled):hover { background: #eee6d7; border-color: #88724e; }
.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: .95rem;
  margin-top: clamp(1.15rem, 4vw, 3rem);
}
.highlight {
  min-height: 180px;
  padding: clamp(1.18rem, 2.7vw, 2.05rem);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  background: var(--surface);
}
.highlight:first-child { background: #292318; border-color: #292318; color: #f4e9d6; }
.highlight:nth-child(3) { background: #ece0c8; border-color: #e4d5ba; }
.highlight-value {
  display: block;
  font-size: clamp(2.6rem, 5vw, 4.85rem);
  font-weight: 760;
  line-height: .96;
  letter-spacing: -.09em;
  font-variant-numeric: tabular-nums;
}
.highlight h2 { font-size: clamp(.99rem, 1.7vw, 1.32rem); line-height: 1.25; font-weight: 690; letter-spacing: -.03em; margin-top: .9rem; }
.highlight p { color: var(--subtle); font-size: .86rem; margin-top: .27rem; }
.highlight:first-child p { color: #d3c6ad; }
.settings-section { padding-block: clamp(2.8rem, 7vw, 6rem); scroll-margin-top: 4.75rem; }
.settings-heading { display: flex; align-items: end; justify-content: space-between; gap: .8rem 1.15rem; margin-bottom: 1.5rem; }
.settings-heading h2 { font-size: clamp(2rem, 4.65vw, 4.4rem); font-weight: 742; line-height: 1.01; letter-spacing: -.065em; }
.settings-heading p { color: var(--subtle); margin-top: .48rem; }
.settings-groups { display: grid; gap: 1.05rem; }
.settings-group {
  border: 1px solid var(--stroke);
  border-radius: 21px;
  background: var(--surface);
  overflow: clip;
}
.settings-group-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px 150px;
  gap: .75rem;
  align-items: end;
  padding: 1.13rem clamp(1rem, 2.8vw, 1.75rem) .83rem;
  border-bottom: 1px solid var(--stroke);
}
.settings-group-head h3 { font-size: clamp(1.12rem, 2.4vw, 1.6rem); font-weight: 700; line-height: 1.12; letter-spacing: -.04em; }
.column-label { color: var(--subtle); font-weight: 670; font-size: .75rem; text-align: right; }
.setting-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px 150px;
  gap: .75rem;
  padding: 1rem clamp(1rem, 2.8vw, 1.75rem);
  align-items: center;
}
.setting-row + .setting-row { border-top: 1px solid #e5decf; }
.setting-row[data-dirty="true"] { background: #f9edda; }
.setting-label { font-weight: 672; display: block; line-height: 1.25; letter-spacing: -.011em; }
.setting-description { color: var(--subtle); font-size: .88rem; margin-top: .3rem; }
.setting-default, .setting-value { text-align: right; font-variant-numeric: tabular-nums; }
.setting-default { color: var(--subtle); font-size: .88rem; }
.setting-value { font-size: 1.27rem; font-weight: 730; line-height: 1.14; letter-spacing: -.045em; }
.setting-changed { color: #75451f; }
.mobile-caption { display: none; }
.stepper { display: flex; align-items: stretch; gap: 0; border: 1px solid #ae9d83; border-radius: 8px; background: #fffdf7; }
.stepper button {
  border: 0;
  padding: .4rem;
  width: 34px;
  flex: none;
  background: transparent;
  color: #654321;
  font-size: 1.15rem;
  font-weight: 650;
}
.stepper button:hover { color: #271b11; background: #efe1c8; }
.stepper button:focus-visible { position: relative; z-index: 1; }
.stepper input {
  appearance: textfield;
  width: 100%;
  min-width: 0;
  border: 0;
  border-inline: 1px solid #d9cbb3;
  padding: .44rem .24rem;
  text-align: center;
  background: #fffdf7;
  color: var(--ink);
  font-size: .96rem;
  font-weight: 670;
  font-variant-numeric: tabular-nums;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { appearance: none; margin: 0; }
.stepper input:focus-visible { outline-offset: -2px; }
.setting-range { font-size: .73rem; margin-top: .24rem; color: var(--subtle); text-align: right; }
.save-bar, .job-status, .availability, .feedback {
  padding: .92rem 1rem;
  margin-block: 1rem;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: #fffaf0;
}
.save-bar, .availability { display: flex; align-items: center; justify-content: space-between; gap: .65rem 1rem; flex-wrap: wrap; }
.save-bar p, .availability p { font-size: .85rem; color: var(--subtle); }
.save-bar .save-summary { font-size: .94rem; font-weight: 730; color: var(--ink); }
.save-actions { display: flex; flex-wrap: wrap; gap: .45rem; }
.job-status { display: flex; align-items: start; gap: .72rem; border-color: #e6cb98; background: #f7ecd6; }
.job-dot { width: 9px; height: 9px; border-radius: 50%; background: #ad7427; margin-top: .35rem; flex: none; }
.job-status[data-status="applied"] { background: #eaf0e4; border-color: #bdcfae; }
.job-status[data-status="applied"] .job-dot { background: #5c8250; }
.job-status[data-status="failed"] { background: #f8e9e4; border-color: #dabbaf; }
.job-status[data-status="failed"] .job-dot { background: #b04c42; }
.job-status h3, .availability h3 { font-size: .98rem; line-height: 1.25; }
.job-status p { font-size: .87rem; margin-top: .22rem; color: var(--subtle); }
.error { color: var(--error); border-color: #debdb3; background: #fbebe5; }
.site-footer { border-top: 1px solid var(--stroke); color: var(--subtle); padding-block: .6rem; font-size: .82rem; }
.footer-inner { min-height: 54px; }
.site-footer .brand { color: var(--ink); }
@media (max-width: 760px) {
  .shell { width: min(100% - 2rem, 1180px); }
  .hero-inner { min-height: auto; }
  .hero-orbit { inset-inline-start: 32%; top: 37%; }
  .setting-row, .settings-group-head { grid-template-columns: minmax(0, 1fr) 82px 116px; gap: .55rem; }
}
@media (max-width: 570px) {
  .shell { width: calc(100% - 1.5rem); }
  .bar-inner { min-height: 51px; }
  .bar-links { gap: .75rem; font-size: .71rem; }
  .bar-links a[aria-current="page"] { display: none; }
  .hero-inner { padding-block: 4.3rem 3.4rem; }
  .hero-content { max-width: 100%; }
  .hero-orbit { inset-inline-start: 27%; opacity: .75; animation: none; }
  .hero-image { object-position: 67% center; }
  .hero::after { background: linear-gradient(90deg, #171410ed, #17141065 100%), linear-gradient(0deg, #171410ed, #17141010 80%); }
  .hero h1 { font-size: clamp(2.47rem, 10vw, 4.1rem); }
  .hero-number { font-size: clamp(5.4rem, 22vw, 8.4rem); }
  .eyebrow { font-size: .73rem; }
  .hero-controls { align-items: start; flex-direction: column; }
  .highlights { grid-template-columns: 1fr; gap: .6rem; }
  .highlight { min-height: 0; border-radius: 15px; display: grid; grid-template-columns: minmax(100px, auto) minmax(0, 1fr); align-items: center; gap: 0 .8rem; }
  .highlight-value { grid-row: span 2; }
  .highlight h2 { margin-top: 0; }
  .highlight p { margin-top: .15rem; }
  .settings-heading { align-items: start; flex-direction: column; }
  .settings-group { border-radius: 16px; }
  .settings-group-head { grid-template-columns: 1fr; }
  .column-label { display: none; }
  .setting-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .7rem .9rem; align-items: end; }
  .setting-copy { grid-column: 1 / -1; }
  .setting-default, .setting-value, .setting-range { text-align: left; }
  .mobile-caption { display: block; font-size: .69rem; margin-bottom: .2rem; color: var(--subtle); }
  .stepper { max-width: 164px; }
  .save-bar, .availability { align-items: start; }
  .footer-inner { gap: .55rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-orbit { animation: none; }
  .button { transition: none; }
}
