:root {
  --paper: #f8f5ef;
  --ink: #142d33;
  --ink-soft: #47636a;
  --card: #fff;
  --coral: #c9362f;
  --teal: #127c83;
  --line: #d9e0dd;
  --sand: #ece8de;
  --muted: #5b7274;
  --mint: #e7f3f0;
  --flag-blue: #275b88;
  --shadow: 0 18px 48px rgba(20, 45, 51, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Arial, sans-serif; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: var(--teal); text-underline-offset: .18em; }
img { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); }
h1, h2 { font-family: Georgia, serif; letter-spacing: -.045em; line-height: 1.08; }
h1 { font-size: clamp(3.7rem, 8vw, 7.5rem); }
h2 { font-size: clamp(2.2rem, 4vw, 3.9rem); }
h3 { font-size: 1.2rem; letter-spacing: -.025em; }
::selection { color: var(--ink); background: var(--mint); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
[hidden] { display: none !important; }
.skip-link { position: absolute; z-index: 100; left: 16px; top: -60px; padding: 10px 14px; color: #fff; background: var(--ink); }
.skip-link:focus { top: 12px; }
.site-wrap { max-width: 1600px; margin: auto; overflow: clip; }
.site-header, main, .site-footer { padding-left: clamp(22px, 5vw, 88px); padding-right: clamp(22px, 5vw, 88px); }
.site-header { min-height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; white-space: nowrap; font-size: 18px; font-weight: 800; letter-spacing: -.035em; }
.wordmark b { color: var(--teal); font-weight: 500; }
.mark { width: 34px; height: 34px; display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); gap: 3px; transform: rotate(-11deg); }
.mark i { display: block; border-radius: 2px; background: var(--coral); }
.mark i:nth-child(2), .mark i:nth-child(3) { background: var(--teal); }
.mark i:nth-child(4) { background: #f1c76a; }

.main-nav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(14px, 2vw, 34px); font-size: 14px; font-weight: 650; }
.main-nav a { color: var(--ink); text-decoration: none; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--teal); }
.main-nav .nav-play { color: #fff; background: var(--ink); padding: 11px 16px; border-radius: 3px; transition: background .2s, transform .2s; }
.main-nav .nav-play:hover { color: #fff; background: var(--teal); transform: translateY(-2px); }
.main-nav .nav-play span { margin-left: 8px; }
main { min-height: 50vh; }
.eyebrow { color: var(--teal); font-size: .74rem; font-weight: 800; letter-spacing: .17em; line-height: 1.4; text-transform: uppercase; }
.eyebrow-line { display: inline-block; width: 20px; height: 1px; margin: 0 8px 4px 0; background: currentColor; }
.hero { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: clamp(36px, 5vw, 92px); align-items: center; min-height: 660px; padding: clamp(70px, 7vw, 120px) 0; }
.hero-copy { max-width: 670px; }
.hero h1 { margin: 13px 0 24px; }
.hero-lead { max-width: 570px; color: var(--ink-soft); font-size: clamp(1.11rem, 1.65vw, 1.35rem); line-height: 1.62; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 32px 0 20px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 52px; padding: 12px 20px; border: 1px solid transparent; border-radius: 3px; font-weight: 750; font-size: .92rem; line-height: 1.2; text-decoration: none; transition: transform .2s, background .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--coral); }
.button-primary:hover { color: #fff; background: #b92f2a; }
.button-quiet { color: var(--ink); border-color: var(--line); background: #fff; }
.button-quiet:hover { border-color: var(--teal); }
.button-dark { color: #fff; background: var(--ink); }
.button-dark:hover { color: #fff; background: var(--teal); }
.hero-footnote { color: var(--muted); font-size: .77rem; }

.hero-art { padding: 16px; background: var(--sand); border: 1px solid var(--line); border-radius: 4px; box-shadow: 24px 24px 0 var(--line); transform: rotate(2deg); }
.art-caption { display: flex; justify-content: space-between; gap: 8px; padding: 4px 3px 15px; color: var(--muted); font-size: .65rem; font-weight: 800; letter-spacing: .16em; }
.art-caption-bottom { padding: 16px 3px 3px; }
.art-board { position: relative; aspect-ratio: 1.25; overflow: hidden; background: var(--paper); }
.art-color { position: absolute; z-index: 0; top: 0; bottom: 0; width: 34%; }
.art-red { left: 0; background: var(--coral); }
.art-white { left: 33%; background: var(--paper); }
.art-blue { right: 0; background: var(--flag-blue); }
.art-slate { position: absolute; z-index: 1; inset: 0; background: var(--ink); }
.art-window { position: absolute; z-index: 2; width: clamp(44px, 6vw, 90px); aspect-ratio: 1; border: 6px solid var(--sand); border-radius: 50%; box-shadow: 0 5px 12px rgba(0,0,0,.2); }
.window-one { left: 17%; top: 19%; background: var(--coral); }
.window-two { left: 58%; top: 37%; background: var(--paper); }
.window-three { left: 34%; bottom: 12%; background: linear-gradient(90deg, var(--coral) 0 48%, var(--paper) 48%); }
.ribbon { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ribbon > div { display: grid; grid-template-columns: 30px 1fr; gap: 0 18px; align-content: center; min-height: 122px; padding: 20px clamp(12px, 2vw, 26px); }
.ribbon > div:first-child { padding-left: 0; }
.ribbon > div + div { border-left: 1px solid var(--line); }
.ribbon span { grid-row: span 2; color: var(--coral); font-size: .78rem; font-weight: 800; }
.ribbon strong { font-size: .98rem; }
.ribbon small { color: var(--ink-soft); font-size: .78rem; }
.section { padding-top: clamp(86px, 9vw, 144px); padding-bottom: clamp(86px, 9vw, 144px); }
.section-head { max-width: 770px; margin-bottom: 40px; }
.section-head h2 { margin: 10px 0 18px; }
.section-head > p:last-child { max-width: 650px; color: var(--ink-soft); font-size: 1.08rem; }
.steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-bottom: 27px; }

.step-card { min-height: 336px; padding: clamp(22px, 2.5vw, 36px); background: #fff; border: 1px solid var(--line); border-radius: 3px; box-shadow: 0 8px 20px rgba(20,45,51,.025); }
.step-number { color: var(--teal); font-size: .7rem; font-weight: 800; letter-spacing: .13em; }
.step-card h3 { margin: 34px 0 10px; }
.step-card p { color: var(--ink-soft); font-size: .93rem; }
.step-glyph { position: relative; width: 68px; height: 68px; margin-top: 28px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); }
.glyph-peek::before { content: ""; position: absolute; inset: 15px; border: 7px solid var(--ink); border-radius: 50%; }
.glyph-peek::after { content: ""; position: absolute; width: 10px; height: 10px; left: 29px; top: 29px; border-radius: 50%; background: var(--coral); }
.glyph-compare::before { content: ""; position: absolute; left: 16px; top: 16px; width: 34px; height: 34px; background: linear-gradient(90deg, var(--coral) 0 33%, var(--card) 33% 66%, var(--teal) 66%); border: 1px solid var(--line); transform: rotate(-12deg); }
.glyph-guess::before { content: "?"; position: absolute; inset: 4px; color: var(--teal); text-align: center; font-family: Georgia, serif; font-size: 40px; font-weight: 700; }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: .9rem; font-weight: 800; text-decoration: none; border-bottom: 2px solid var(--coral); padding-bottom: 4px; }
.text-link:hover { color: var(--teal); }
.method-section { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(35px, 8vw, 150px); border-top: 1px solid var(--line); }
.method-intro h2 { margin: 12px 0 22px; }
.method-intro > p:not(.eyebrow) { max-width: 510px; color: var(--ink-soft); }
.method-intro .text-link { margin-top: 16px; }
.method-list { list-style: none; margin: 0; padding: 0; }
.method-list li { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 21px 0; border-bottom: 1px solid var(--line); }
.method-list li:first-child { border-top: 1px solid var(--line); }
.method-list li > span { color: var(--coral); font-size: .79rem; font-weight: 800; }
.method-list strong { display: block; margin-bottom: 3px; font-size: 1.02rem; }
.method-list p { margin: 0; color: var(--ink-soft); font-size: .9rem; }

.tool-promo { display: grid; grid-template-columns: 1fr .8fr; align-items: center; gap: 40px; margin: 0 calc(-1 * clamp(22px, 5vw, 88px)); padding-left: clamp(22px, 5vw, 88px); padding-right: clamp(22px, 5vw, 88px); color: #fff; background: var(--teal); overflow: hidden; }
.tool-promo .eyebrow { color: #a9e6db; }
.tool-promo h2 { max-width: 570px; margin: 13px 0 18px; color: #fff; }
.tool-promo p:not(.eyebrow) { max-width: 600px; color: #d9eeea; }
.tool-promo .button { margin-top: 20px; }
.mini-flags { position: relative; height: 250px; }
.mini-flag { position: absolute; display: block; width: 175px; height: 112px; border: 7px solid #fff; box-shadow: 0 16px 28px rgba(0,0,0,.2); }
.mini-a { left: 9%; top: 0; background: linear-gradient(var(--card) 0 50%, var(--coral) 50%); transform: rotate(-13deg); }
.mini-b { left: 38%; top: 24%; background: linear-gradient(90deg, #f1c76a 0 33%, var(--card) 33% 66%, var(--teal) 66%); transform: rotate(8deg); }
.mini-c { left: 14%; top: 46%; background: linear-gradient(var(--coral) 0 33%, var(--card) 33% 66%, var(--flag-blue) 66%); transform: rotate(-4deg); }
.faq-section { max-width: 950px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 22px 40px 22px 0; font-weight: 750; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; color: var(--teal); font-size: 1.4rem; font-weight: 400; top: 17px; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 720px; padding-bottom: 19px; color: var(--ink-soft); }
.source-note { margin-top: 30px; color: var(--muted); font-size: .78rem; }
.site-footer { margin-top: 55px; padding-top: 55px; padding-bottom: 27px; background: var(--ink); color: #d6e2df; }
.footer-top { display: flex; justify-content: space-between; gap: 80px; padding-bottom: 56px; }
.footer-top > div { max-width: 410px; }
.footer-name { margin-bottom: 16px; color: #fff; font-family: Georgia, serif; font-size: 1.6rem; font-weight: 700; }
.footer-top p { margin: 0; color: #b0c4c3; font-size: .9rem; }

.footer-top nav { display: flex; flex-wrap: wrap; align-content: flex-start; justify-content: flex-end; gap: 14px 26px; max-width: 390px; }
.site-footer a { color: #d6e2df; text-decoration: none; font-size: .84rem; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 18px; border-top: 1px solid #496069; color: #95adae; font-size: .77rem; }
.inner-page, .tool-page { max-width: 1120px; margin: 0 auto; padding: clamp(56px, 7vw, 110px) 0 40px; }
.breadcrumb { display: flex; align-items: center; gap: 9px; margin-bottom: 22px; color: var(--ink-soft); font-size: .78rem; }
.breadcrumb a { color: var(--teal); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.page-hero { max-width: 800px; padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.page-hero h1 { margin: 12px 0 22px; font-size: clamp(3rem, 6vw, 5.3rem); }
.page-hero > p:not(.eyebrow) { max-width: 700px; margin-bottom: 12px; color: var(--ink-soft); font-size: clamp(1rem, 1.5vw, 1.18rem); }
.page-updated { display: inline-block; margin-top: 15px; color: var(--muted); font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.article-body { max-width: 780px; padding: 34px 0; color: var(--ink-soft); font-size: 1rem; line-height: 1.76; }
.article-body > *:first-child { margin-top: 0; }
.article-body h2 { margin: 48px 0 15px; font-size: clamp(1.9rem, 3vw, 2.5rem); }
.article-body h3 { margin: 34px 0 12px; font-size: 1.2rem; }
.article-body p, .article-body ul, .article-body ol { margin-bottom: 1.2em; }
.article-body ul, .article-body ol { padding-left: 1.5em; }
.article-body li { margin: .3em 0; padding-left: .25em; }
.article-body strong { color: var(--ink); }
.article-body blockquote { margin: 26px 0; padding: 16px 20px; border-left: 4px solid var(--coral); background: var(--sand); }
.article-body blockquote > *:last-child { margin-bottom: 0; }
.article-body a:hover { color: var(--coral); }
.article-body table { width: 100%; border-collapse: collapse; margin: 25px 0; font-size: .92rem; }
.article-body th, .article-body td { padding: 10px 12px; text-align: left; border: 1px solid var(--line); }
.article-body th { background: var(--line); color: var(--ink); }
.article-body code { padding: .1em .25em; border-radius: 2px; background: var(--line); font-size: .9em; }

.next-card { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; max-width: 780px; margin: 25px 0 70px; padding: 27px 30px; border: 1px solid var(--line); background: #fff; }
.next-card > span { color: var(--teal); font-size: .73rem; font-weight: 800; letter-spacing: .15em; }
.next-card a { color: var(--ink); font-family: Georgia, serif; font-size: 1.25rem; font-weight: 700; text-decoration: none; }
.next-card a:hover { color: var(--teal); }
.tool-page { max-width: 1320px; }
.tool-page-hero { max-width: 1000px; border-bottom: 0; }
.tool-page-hero h1 { font-size: clamp(3.1rem, 5.5vw, 5.8rem); }
.finder { padding-bottom: 20px; }
.finder-controls { margin-top: 20px; padding: clamp(22px, 3vw, 40px); background: #fff; border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow); }
.finder-search-wrap label, .finder-colors legend { display: block; margin-bottom: 9px; color: var(--ink); font-size: .9rem; font-weight: 800; }
.finder-input-wrap { position: relative; max-width: 540px; }
.finder-input-wrap .search-glyph { position: absolute; left: 15px; top: 8px; color: var(--muted); font-family: Georgia, serif; font-size: 2rem; line-height: 1; pointer-events: none; }
.finder-input-wrap input { width: 100%; height: 52px; padding: 10px 15px 10px 48px; border: 1px solid #b5c8c5; border-radius: 3px; color: var(--ink); background: #fff; }
.finder-input-wrap input::placeholder { color: var(--muted); }
.finder-input-wrap input:focus { border-color: var(--teal); outline: 3px solid rgba(18,124,131,.18); }
.finder-colors { margin: 28px 0 0; padding: 23px 0 0; border: 0; border-top: 1px solid var(--line); }
.finder-colors legend { float: left; width: 100%; margin: 0 0 14px; padding: 0; }
.finder-colors legend span { margin-left: 6px; color: var(--muted); font-size: .79rem; font-weight: 400; }
.color-choices { display: flex; flex-wrap: wrap; gap: 9px; clear: both; }
.color-choice { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 2px; color: var(--ink); background: #fff; font-size: .82rem; font-weight: 700; transition: border-color .16s, background .16s, box-shadow .16s; }
.color-choice:hover { border-color: var(--teal); }

.color-choice[aria-pressed="true"] { border-color: var(--teal); background: var(--mint); box-shadow: inset 0 0 0 1px var(--teal); }
.swatch { display: inline-block; width: 15px; height: 15px; border: 1px solid rgba(20,45,51,.2); border-radius: 50%; }
.swatch-red { background: var(--coral); }.swatch-blue { background: var(--flag-blue); }.swatch-green { background: #2f976c; }.swatch-yellow { background: #f1c76a; }.swatch-white { background: var(--card); }.swatch-black { background: var(--ink); }.swatch-orange { background: #ed8f45; }.swatch-gray { background: #9ea8a8; }
.finder-controls-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.finder-controls-foot p { margin: 0; color: var(--muted); font-size: .78rem; }
.reset-button { padding: 0; border: 0; color: var(--teal); background: transparent; font-size: .82rem; font-weight: 800; }
.reset-button:hover { color: var(--coral); }
.reset-button span { margin-left: 4px; }
.finder-results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 29px 0 14px; }
.finder-results-head p { margin: 0; color: var(--ink); font-weight: 800; }
.finder-results-head span { color: var(--muted); font-size: .77rem; }
.flag-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.flag-card { display: flex; align-items: center; gap: 14px; min-width: 0; min-height: 104px; padding: 13px; border: 1px solid var(--line); border-radius: 3px; background: #fff; }
.flag-image { display: flex; align-items: center; justify-content: center; flex: 0 0 82px; height: 62px; overflow: hidden; background: var(--paper); }
.flag-image img { display: block; width: 82px; height: 62px; object-fit: contain; }
.flag-card .flag-name { display: block; margin: 0 0 3px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Arial, sans-serif; font-size: .87rem; font-weight: 760; line-height: 1.27; letter-spacing: -.015em; }
.flag-card small { color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .1em; }
.finder-empty { padding: 30px; border: 1px dashed var(--line); color: var(--ink-soft); background: #fff; }
.tool-notes { padding-top: 32px; }
@media (max-width: 1120px) {

  .site-header { align-items: flex-start; flex-direction: column; justify-content: center; gap: 12px; padding-top: 18px; padding-bottom: 16px; }
  .main-nav { justify-content: flex-start; flex-wrap: wrap; gap: 10px 22px; }
  .flag-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 50px; padding: 68px 0 75px; }
  .hero-copy { max-width: 630px; }
  .hero-art { width: min(100%, 570px); justify-self: center; }
  .ribbon > div { display: block; min-height: 0; padding: 18px; }
  .ribbon > div:first-child { padding-left: 0; }
  .ribbon span { display: block; margin-bottom: 5px; }
  .ribbon strong { display: block; }
  .ribbon small { display: block; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-card { min-height: 0; }
  .step-card h3 { margin-top: 15px; }
  .method-section { grid-template-columns: 1fr; gap: 30px; }
  .tool-promo { grid-template-columns: 1fr; }
  .mini-flags { height: 180px; max-width: 520px; }
  .flag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { gap: 40px; }
}
@media (max-width: 560px) {
  .site-header, main, .site-footer { padding-left: 20px; padding-right: 20px; }
  .site-header { gap: 15px; }
  .wordmark { font-size: 17px; }
  .main-nav { display: grid; width: 100%; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 11px 6px; font-size: .75rem; }
  .main-nav .nav-play { grid-column: 1 / -1; justify-self: stretch; text-align: center; padding: 10px; }
  .hero { padding: 50px 0 65px; }
  .hero h1 { font-size: clamp(3.55rem, 15vw, 5.6rem); }
  .hero-lead { font-size: 1.05rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { justify-content: space-between; width: 100%; }
  .hero-art { width: calc(100% - 15px); box-shadow: 13px 13px 0 var(--line); }
  .art-caption { font-size: .52rem; }
  .art-window { width: 52px; border-width: 4px; }
  .ribbon { grid-template-columns: 1fr; }
  .ribbon > div, .ribbon > div:first-child { display: grid; grid-template-columns: 30px 1fr; padding: 15px 0; }
  .ribbon > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .ribbon span { grid-row: span 2; }

  .section { padding-top: 70px; padding-bottom: 70px; }
  .tool-promo { margin: 0 -20px; padding-left: 20px; padding-right: 20px; }
  .mini-flags { height: 160px; }
  .mini-flag { width: 130px; height: 82px; border-width: 5px; }
  .site-footer { margin-top: 20px; }
  .footer-top { flex-direction: column; padding-bottom: 35px; }
  .footer-top nav { justify-content: flex-start; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .inner-page, .tool-page { padding-top: 54px; }
  .page-hero h1 { font-size: clamp(2.7rem, 11vw, 3.9rem); overflow-wrap: anywhere; }
  .article-body { font-size: .96rem; }
  .article-body table { display: block; overflow-x: auto; white-space: nowrap; }
  .next-card { align-items: flex-start; flex-direction: column; padding: 20px; }
  .finder-controls { padding: 20px; }
  .finder-colors legend span { display: block; margin: 2px 0 0; }
  .flag-grid { grid-template-columns: 1fr; }
  .flag-card { min-height: 86px; }
  .finder-results-head { align-items: flex-start; flex-direction: column; gap: 1px; }
}

