:root {
  --moss: #1F4D3A;
  --moss-deep: #163A2B;
  --lime: #C8E65A;
  --pink: #F7A8C4;
  --yolk: #F4B63A;
  --paper: #F7F5EF;
  --ink: #1A1F1C;
  --muted: #4E5751;
  --white: #FFFFFF;
  --line: 2px solid var(--ink);
  --pop: 4px 4px 0 var(--ink);
  --display: "Fraunces", Georgia, serif;
  --body: "IBM Plex Sans", system-ui, sans-serif;
  --hand: "Caveat", cursive;
  --wrap: 1080px;
  --gutter: clamp(16px, 4vw, 40px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--moss); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--white); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
h1, h2, h3 { font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; margin: 0; letter-spacing: -.01em; }
h1 { font-weight: 850; font-size: clamp(2.3rem, 5.4vw, 4.2rem); line-height: 1; letter-spacing: -.025em; }
h2 { font-weight: 800; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.08; }
h3 { font-weight: 750; font-size: 1.3rem; line-height: 1.15; }
p { margin: 0 0 1em; }
.small { font-size: .9rem; }
.muted { color: var(--muted); }
.kicker { font-family: var(--hand); font-weight: 700; font-size: 1.6rem; color: var(--moss); display: inline-block; transform: rotate(-2deg); margin-bottom: .25rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: 600 1rem/1 var(--body); padding: .95rem 1.4rem; border-radius: 999px; border: var(--line); background: var(--yolk); color: var(--ink); text-decoration: none; box-shadow: var(--pop); transition: transform .15s ease, box-shadow .15s ease; cursor: pointer; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; box-shadow: var(--pop); }
.btn--sm { padding: .65rem 1rem; font-size: .95rem; box-shadow: 3px 3px 0 var(--ink); }
.btn--ghost { background: var(--white); }
.btn--moss { background: var(--moss); color: var(--white); }

/* header / footer */
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 68px; }
.wordmark { display: inline-flex; align-items: center; gap: .55rem; font: 500 1.3rem/1 var(--body); text-decoration: none; color: var(--moss); }
.wordmark .mark { height: 38px; width: auto; }
.wordmark small { font: 700 1.35rem/1 var(--hand); color: var(--ink); margin-left: .25rem; }
.head-actions { display: flex; align-items: center; gap: .6rem; }
.lang { font: 600 .85rem/1 var(--body); background: var(--white); border: var(--line); border-radius: 999px; padding: .5rem .7rem; cursor: pointer; }
@media (max-width: 520px) { #home-link { display: none; } }
.site-foot { border-top: var(--line); padding: 28px 0 36px; margin-top: 72px; }
.site-foot p { margin: 0 0 .4rem; }

/* list page */
.hero { padding: clamp(36px, 6vw, 72px) 0 clamp(24px, 4vw, 40px); }
.hero .lede { font-size: 1.15rem; max-width: 36em; margin: 1rem 0 0; }
.toolbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: 1.5rem 0 1.25rem; }
.search { flex: 1 1 260px; display: flex; align-items: center; gap: .5rem; background: var(--white); border: var(--line); border-radius: 999px; padding: .2rem .4rem .2rem 1rem; }
.search input { border: 0; outline: 0; background: transparent; font: inherit; padding: .55rem 0; width: 100%; }
.search svg { width: 20px; height: 20px; flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; padding: 0; margin: 0; }
.chip { border: var(--line); border-radius: 999px; padding: .4rem .9rem; font: 500 .92rem/1.2 var(--body); background: var(--white); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--lime); }
.jobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 1.25rem; }
.job { display: flex; flex-direction: column; background: var(--white); border: var(--line); border-radius: 24px; padding: 1.35rem 1.4rem 1.25rem; text-decoration: none; box-shadow: var(--pop); transition: transform .15s ease, box-shadow .15s ease; }
.job:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.job:nth-child(4n+2) .tag-field { background: var(--pink); }
.job:nth-child(4n+3) .tag-field { background: var(--yolk); }
.job h3 { margin: .7rem 0 .5rem; font-size: 1.45rem; }
.job p { font-size: .95rem; color: var(--muted); margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.job .go { margin-top: auto; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.tag-field { align-self: flex-start; font-size: .8rem; font-weight: 600; padding: .22rem .7rem; border-radius: 999px; background: var(--lime); border: 1.5px solid var(--ink); }
.meta { display: flex; flex-wrap: wrap; gap: .35rem .9rem; font-size: .92rem; color: var(--muted); list-style: none; padding: 0; margin: 0 0 1rem; }
.meta li { display: inline-flex; align-items: center; gap: .35rem; }
.meta svg { width: 16px; height: 16px; }
.empty { border: var(--line); border-radius: 24px; padding: 2.5rem 1.5rem; text-align: center; background: var(--white); }
.empty h2 { margin-bottom: .5rem; }

/* detail page */
.back { display: inline-flex; gap: .35rem; align-items: center; font-weight: 600; text-decoration: none; margin: 28px 0 18px; }
.back:hover { text-decoration: underline; }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; } }
.detail h1 { margin: .75rem 0 1rem; font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.detail .meta { font-size: 1rem; }
.section-block { margin-top: 1.75rem; }
.section-block h2 { font-size: 1.35rem; margin-bottom: .6rem; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 1.9rem; margin-bottom: .55rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--lime); border: 1.5px solid var(--ink); }
.ticks li::after { content: ""; position: absolute; left: .37rem; top: .55em; width: .3rem; height: .55rem; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.salary { display: inline-block; background: var(--yolk); border: var(--line); border-radius: 12px; padding: .4rem .8rem; font-weight: 600; margin-bottom: .5rem; }
.closed-note { background: var(--pink); border: var(--line); border-radius: 18px; padding: 1rem 1.2rem; font-weight: 500; }

/* apply form */
.apply { background: var(--white); border: var(--line); border-radius: 28px; padding: clamp(20px, 3vw, 32px); box-shadow: var(--pop); position: sticky; top: 88px; }
@media (max-width: 900px) { .apply { position: static; } }
.apply h2 { margin-bottom: .35rem; }
.apply > p { color: var(--muted); font-size: .95rem; }
.fld { margin-bottom: 1.05rem; }
.fld > label, .fld > legend, .fld .lbl { display: block; font-weight: 600; font-size: .97rem; margin-bottom: .35rem; padding: 0; }
.fld .req { color: #B2382F; }
.fld .help { display: block; font-size: .85rem; color: var(--muted); margin: -.15rem 0 .4rem; font-weight: 400; }
fieldset.fld { border: 0; margin: 0 0 1.05rem; padding: 0; min-width: 0; }
.fld input[type=text], .fld input[type=email], .fld input[type=tel], .fld input[type=url], .fld input[type=number], .fld input[type=date], .fld select, .fld textarea {
  width: 100%; font: 400 1rem/1.4 var(--body); color: var(--ink); background: var(--paper); border: var(--line); border-radius: 12px; padding: .7rem .85rem;
}
.fld textarea { min-height: 110px; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 3px solid var(--lime); outline-offset: 0; }
.opt { display: flex; gap: .6rem; align-items: flex-start; margin: .35rem 0; font-size: .98rem; cursor: pointer; }
.opt input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--moss); flex: none; }
.file { display: flex; align-items: center; gap: .75rem; border: 2px dashed var(--ink); border-radius: 14px; padding: .8rem 1rem; background: var(--paper); cursor: pointer; }
.file:hover, .file:focus-within { background: #EEF5D2; }
.file input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file .name { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file b { white-space: nowrap; }
.consent { font-size: .9rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: #FBE2E0; border: 2px solid #B2382F; color: #8A231C; border-radius: 14px; padding: .75rem 1rem; margin-bottom: 1rem; font-weight: 500; }
.fld.invalid input, .fld.invalid select, .fld.invalid textarea, .fld.invalid .file { border-color: #B2382F; }
.fld .err { color: #B2382F; font-size: .87rem; margin-top: .3rem; display: block; }
.submit { width: 100%; margin-top: .5rem; font-size: 1.05rem; }
.done { text-align: center; padding: 1rem 0; }
.done .big { font: 700 3rem/1 var(--hand); color: var(--moss); transform: rotate(-3deg); margin-bottom: .5rem; }
.done .ref { font: 600 1.1rem/1 ui-monospace, monospace; background: var(--lime); border: var(--line); border-radius: 10px; padding: .5rem .8rem; display: inline-block; margin: .5rem 0 1rem; }
.loading { padding: 4rem 0; text-align: center; color: var(--muted); }
