body {
  margin: 0;
}

.field-guide {
  --ink: #211f27;
  --paper: #f7f4e8;
  --line: #c7c5b9;
  --rust: #953b23;
  --serif: "Instrument Serif", Georgia, serif;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
.field-guide [hidden] { display: none !important; }
.field-guide :is(h1, h2, h3, p, dl, dd) { margin: 0; }
.field-guide :is(a, button) { color: inherit; font: inherit; touch-action: manipulation; }
.field-guide a { text-decoration: none; }
.field-guide button { cursor: pointer; }
.field-guide :focus-visible { outline: 3px solid #475ada; outline-offset: 3px; }
.field-guide :is(section[id], div[id]) { scroll-margin-top: 85px; }

.fg-wrap {
  width: min(1270px, calc(100% - 2 * clamp(20px, 5vw, 85px)));
  margin-inline: auto;
}

.fg-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.fg-cover {
  display: grid;
  grid-template-columns: minmax(0, .99fr) minmax(0, 1.01fr);
  align-items: center;
  gap: clamp(35px, 6.2vw, 94px);
  padding-block: 30px;
}

.fg-cover h1 {
  font: 400 clamp(72px, 7.7vw, 117px)/.88 var(--serif);
  letter-spacing: -.052em;
  text-wrap: balance;
}

.fg-intro .fg-lede {
  max-width: 27em;
  margin-block: 26px;
  color: #46444a;
  font-size: clamp(16px, 1.32vw, 20px);
  line-height: 1.5;
  letter-spacing: -.027em;
}

.fg-actions, .fg-capture-line, .fg-ticket-meta, .fg-dialog-head,
.fg-plate-head, .fg-caption, .fg-markets, .fg-markets div {
  display: flex;
  align-items: center;
}

.fg-actions { flex-wrap: wrap; gap: 20px; }
.field-guide .fg-primary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 4px;
  background: var(--ink);
  color: white;
  font-size: 14px;
  font-weight: 600;
}

.field-guide .fg-primary:hover { background: #3e3541; }
.field-guide .fg-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.field-guide .fg-secondary:hover { background: rgba(0, 0, 0, .05); }
.field-guide .fg-markets a:hover { text-decoration: underline; text-underline-offset: 3px; }
.fg-note-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 9px; min-height: 20px; margin-top: 9px; }
.fg-intro .fg-cover-note { font-size: 12px; color: #555258; }
.field-guide .fg-topic {
  display: inline-block;
  color: var(--rust);
  font-size: 12px;
  font-weight: 570;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fg-plate {
  width: 100%;
  max-width: 489px;
  justify-self: center;
  min-width: 0;
  padding: 16px;
  border: 1px solid #beb6a6;
  border-radius: 5px;
  background: #f0eadc;
  box-shadow: 4px 4px 0 #e8ddca;
}

.fg-plate-head, .fg-caption { justify-content: space-between; gap: 6px 12px; }
.fg-plate-head { flex-wrap: wrap; }
.fg-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #3e3933;
  font-size: 12px;
  font-weight: 600;
}

.fg-label::before { content: ""; width: 15px; height: 2px; background: var(--rust); }
.fg-switch {
  display: inline-flex;
  align-items: stretch;
  gap: 1px;
  padding: 2px;
  border: 1px solid #d3c8b7;
  border-radius: 4px;
  background: #e7e0d3;
}

.fg-switch button {
  position: relative;
  padding: 8px 10px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: #514a40;
  font: 540 12px/1.2 Inter, Arial, sans-serif;
}

.fg-switch button[aria-selected="true"] { background: #3a3730; color: #fffaf0; }
.fg-switch button:not([aria-selected="true"]):hover { background: #f5efe1; }
.fg-switch button:focus-visible { z-index: 1; outline-offset: 1px; }
.fg-panel h2 {
  margin-block: 12px 6px;
  font: 400 38px/1.01 var(--serif);
  letter-spacing: -.035em;
}

.fg-panel .fg-rule {
  min-height: 2lh;
  margin-bottom: 9px;
  color: #484039;
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: -.015em;
}

.fg-shot {
  display: block;
  overflow: hidden;
  aspect-ratio: 1.075;
  border: 1px solid #c3bfb6;
  border-radius: 4px;
  background: #f6f8f9;
  cursor: zoom-in;
}

.fg-shot img { display: block; width: 100%; height: 100%; object-fit: contain; }
.fg-caption { margin-top: 5px; color: #554e47; font-size: 11px; }
.field-guide .fg-caption a, .field-guide .fg-details a {
  display: inline-block;
  padding-block: 7px;
  font-size: 12px;
  font-weight: 550;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fg-markets {
  flex-wrap: wrap;
  gap: 9px 25px;
  padding-block: 14px;
  border-block: 1px solid var(--line);
  font-size: 14px;
}

.fg-markets div { flex-wrap: wrap; gap: 2px 10px; }
.fg-markets div > span { color: #5c5754; }
.field-guide .fg-all-markets { margin-left: auto; font-size: 13px; font-weight: 550; }

.fg-examples { padding-block: clamp(44px, 4.3vw, 76px); background: #fcfbf7; }
.fg-examples h2, .fg-offer h2 {
  font: 400 clamp(47px, 5vw, 80px)/.98 var(--serif);
  letter-spacing: -.045em;
}

.fg-examples h2 { max-width: 15em; margin-block: 11px; }
.fg-examples h2 + p, .fg-offer-main > p { color: #504d53; font-size: 16px; line-height: 1.5; }
.fg-notebook {
  display: grid;
  grid-template-columns: .58fr 1.42fr;
  align-items: start;
  gap: clamp(25px, 5.4vw, 84px);
  margin-top: 27px;
}

.fg-contents { border-top: 1px solid #c4bfb8; }
.fg-contents button {
  display: grid;
  grid-template-columns: minmax(60px, 30%) 1fr;
  gap: clamp(9px, 1vw, 16px);
  align-items: center;
  width: 100%;
  padding: 10px;
  border: 0;
  border-bottom: 1px solid #d4cfc8;
  background: transparent;
  text-align: left;
  font-size: clamp(18px, 1.65vw, 25px);
  font-weight: 540;
  letter-spacing: -.04em;
}

.fg-tab-art { display: block; width: 100%; height: auto; border-radius: 3px; }
.fg-contents button small { display: block; margin-bottom: 5px; color: #665e63; font-size: 12px; letter-spacing: normal; }
.fg-contents button[aria-selected="true"] { box-shadow: inset 3px 0 var(--rust); background: #f0eade; }
.fg-notebook-page { min-width: 0; grid-column: 2; }
.fg-ticket { padding: clamp(18px, 2.5vw, 36px); border-top: 3px solid #322b33; background: #f0ecdf; }
.fg-ticket-meta { justify-content: space-between; gap: 9px; color: #5e5356; font-size: 12px; overflow-wrap: anywhere; }
.fg-ticket h3 { margin-block: 17px 9px; font: 400 clamp(35px, 3.6vw, 58px)/1.02 var(--serif); letter-spacing: -.04em; }
.fg-ticket p { max-width: 40em; color: #464048; font-size: 15px; line-height: 1.55; }
.fg-ticket dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.fg-ticket dl > div { padding-top: 10px; border-top: 1px solid #b9b1aa; }
.fg-ticket dt { color: #675f64; font-size: 12px; }
.fg-ticket dd { margin-top: 4px; font-size: 18px; font-weight: 580; letter-spacing: -.04em; }
.fg-capture-line { justify-content: space-between; gap: 10px; margin-block: 21px 9px; font-size: 14px; }
.fg-capture-line p { margin-top: 3px; color: #5c575d; font-size: 12px; }
.field-guide .fg-capture-line a, .fg-dialog button {
  padding: 9px 12px;
  border: 1px solid #b8b3ae;
  border-radius: 4px;
  background: transparent;
  font-size: 13px;
}

.fg-notebook-image {
  display: block;
  width: 100%;
  max-height: 386px;
  padding: 12px;
  border: 1px solid #d0d6d2;
  background: #e4e8e5;
  object-fit: contain;
}

.fg-offer { padding-block: clamp(46px, 5.4vw, 82px); border-block: 1px solid #bfc0b2; background: #e6e8d6; }
.fg-offer-inner { display: grid; grid-template-columns: .87fr 1.13fr; gap: clamp(40px, 9vw, 140px); }
.fg-offer h2 { margin-block: 14px; }
.fg-sentinel { display: block; width: 100%; height: 8px; margin-bottom: -8px; pointer-events: none; }
.fg-offer em { color: #893d26; font-weight: 400; }
.fg-offer-main > p { max-width: 29em; }
.fg-offer-main .fg-primary { margin-block: 21px 11px; }
.fg-offer-main > small { display: block; max-width: 37em; color: #555747; font-size: 12px; line-height: 1.55; }
.fg-details section { padding-block: 15px; border-top: 1px solid #acb29d; }
.fg-details h3 { margin-bottom: 6px; font-size: 20px; font-weight: 550; letter-spacing: -.04em; }
.fg-details p { max-width: 38em; color: #41463c; font-size: 14px; line-height: 1.6; }

.fg-faq { padding-block: clamp(44px, 4.3vw, 76px); background: var(--paper); }
.fg-faq-inner { display: grid; grid-template-columns: .87fr 1.13fr; gap: clamp(40px, 9vw, 140px); align-items: start; }
.fg-faq h2 { margin-block: 14px; font: 400 clamp(40px, 4.2vw, 64px)/1 var(--serif); letter-spacing: -.045em; }
.fg-faq-answer { max-width: 30em; color: #3f3c43; font-size: 17px; line-height: 1.55; }
.field-guide .fg-faq-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 18px; color: #5c575d; font-size: 13px; }
.field-guide .fg-faq-meta a { text-decoration: underline; text-underline-offset: 3px; }
.fg-faq-list details { border-top: 1px solid var(--line); }
.fg-faq-list details:last-child { border-bottom: 1px solid var(--line); }
.fg-faq-list summary { display: flex; justify-content: space-between; gap: 16px; padding-block: 15px; cursor: pointer; font-size: 18px; font-weight: 550; letter-spacing: -.03em; list-style: none; }
.fg-faq-list summary::-webkit-details-marker { display: none; }
.fg-faq-list summary::after { content: "+"; color: var(--rust); font-weight: 400; }
.fg-faq-list details[open] summary::after { content: "−"; }
.fg-faq-list details p { max-width: 40em; padding-bottom: 16px; color: #464048; font-size: 15px; line-height: 1.6; }

.fg-dialog {
  width: min(96vw, 1020px);
  max-height: 92dvh;
  padding: 16px;
  border: 1px solid #aaa795;
  border-radius: 5px;
  background: var(--paper);
  color: var(--ink);
}

.fg-dialog::backdrop { background: #211f27c7; }
.fg-dialog-head { justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.fg-dialog-image { overflow: auto; max-height: 73dvh; background: #f1f3f4; }
.fg-dialog-image img { display: block; width: auto; height: auto; max-width: 100%; margin-inline: auto; }
.fg-dialog p { margin-top: 10px; font-size: 13px; }

@media (max-width: 800px) {
  .fg-cover { grid-template-columns: .91fr 1.09fr; gap: 20px; }
  .fg-cover h1 { font-size: clamp(59px, 8.4vw, 70px); }
  .fg-intro .fg-lede { margin-block: 18px; font-size: 15px; }
  .fg-panel h2 { font-size: clamp(28px, 4.2vw, 35px); }
  .fg-panel .fg-rule { min-height: 4lh; font-size: 13px; }
  .fg-plate { padding: 12px; }
  .fg-label, .fg-switch button { font-size: 11px; }
  .fg-switch button { padding: 8px; }
  .fg-notebook { gap: 22px; }
  .fg-offer-inner { gap: 38px; }
  .field-guide .fg-all-markets { display: none; }
}

@media (max-width: 620px) {
  .fg-cover-group { display: grid; grid-template-areas: "intro" "markets" "builder"; }
  .fg-cover { display: contents; }
  .fg-intro { grid-area: intro; padding-block: 25px 17px; }
  .fg-cover h1 { font-size: clamp(53px, 12.5vw, 70px); line-height: .91; }
  .fg-intro .fg-lede { margin-block: 13px 14px; font-size: 16px; line-height: 1.45; }
  .fg-actions { gap: 10px; }
  .fg-actions > a { flex: 1 1 100%; }
  .fg-note-row { margin-top: 7px; }
  .fg-markets { grid-area: markets; gap: 2px 11px; padding-block: 8px; font-size: 12px; }
  .fg-markets div { gap: 1px 7px; }
  .fg-plate { grid-area: builder; margin-block: 16px 22px; padding: 13px; }
  .fg-panel h2 { margin-top: 10px; font-size: clamp(26px, 7.4vw, 34px); }
  .fg-panel .fg-rule { min-height: 3lh; }
  .fg-switch button { min-height: 32px; }
  .fg-examples { padding-block: 34px 42px; }
  .fg-examples h2 { font-size: 44px; }
  .fg-notebook { display: block; margin-top: 16px; }
  .fg-contents { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 12px; gap: 4px; border: 0; }
  .fg-contents button { min-width: 0; grid-template-columns: minmax(34px, 29%) 1fr; gap: 7px; padding: 7px; border-bottom: 2px solid #cfc6bc; font-size: 14px; }
  .fg-contents button[aria-selected="true"] { box-shadow: none; border-bottom-color: var(--rust); }
  .fg-contents button small { margin-bottom: 2px; }
  .fg-ticket { padding: 16px; }
  .fg-ticket dl { gap: 8px; }
  .fg-ticket dd { font-size: 15px; }
  .fg-offer-inner { display: block; }
  .fg-details { margin-top: 28px; }
  .fg-offer h2 br { display: none; }
  .fg-faq { padding-block: 34px 42px; }
  .fg-faq-inner { display: block; }
  .fg-faq-list { margin-top: 24px; }
  .fg-faq-list summary { font-size: 16px; }
}

@media (max-width: 374px) {
  .fg-intro { padding-block: 18px 12px; }
  .fg-cover h1 { font-size: 44px; }
  .fg-intro .fg-lede { font-size: 15px; }
  .fg-markets { padding-block: 5px; }
  .fg-markets > strong { display: none; }
  .fg-markets div { gap: 2px 5px; font-size: 11px; }
  .fg-plate { margin-top: 11px; }
  .fg-plate-head { column-gap: 4px; }
  .fg-label { gap: 4px; font-size: 10px; }
  .fg-label::before { width: 9px; }
  .fg-switch button { padding-inline: 5px; }
  .fg-panel h2 { margin-top: 6px; }
  .fg-panel .fg-rule { line-height: 1.36; }
}
