:root {
  color-scheme: light;
  --background: #fff;
  --surface: #fff;
  --ink: #24201d;
  --muted: #615951;
  --accent: #92451f;
  --line: #e3dbd3;
  --radius: 5px;
  --width: 1240px;
  font-family: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--background);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; width: 100%; }
h1, h2, h3, p, dl, dd { margin: 0; }
p, address { line-height: 1.8; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.wrap { width: min(var(--width), calc(100% - 112px)); margin-inline: auto; }
.skip { position: fixed; top: 12px; left: 12px; background: var(--background); padding: 12px; z-index: 10; transform: translateY(-150%); }
.skip:focus { transform: none; }

.utility {
  --accent: #ffd5b4;
  background: #492918;
  background-image: linear-gradient(90deg, rgb(26 13 8 / .69), rgb(32 16 9 / .42), rgb(26 13 8 / .69)), url("assets/td410-grain.webp");
  background-position: center, right 31%;
  background-size: 100% 100%, 380% auto;
  color: #fff5ec;
  font-size: .8125rem;
}
.utility-inner { min-height: 35px; display: flex; align-items: center; justify-content: space-between; letter-spacing: .08em; gap: 12px; }
.utility a:hover, nav > a:hover, .footer-links a:hover { color: var(--accent); }
.site-header { position: relative; z-index: 2; background: #fff; border-bottom: 1px solid var(--line); }
.nav-row { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-grid; justify-items: start; width: max-content; line-height: .9; white-space: nowrap; }
.brand strong { font-family: Arial, sans-serif; font-size: 1.75rem; letter-spacing: .055em; }
.brand strong span { color: var(--accent); }
.brand small { margin-top: 8px; font: 600 .625rem/1 Arial, sans-serif; letter-spacing: .34em; }
nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 45px); font-size: .9375rem; font-weight: 600; }
.menu-toggle { display: none; }
.button { min-height: 49px; padding: 0 22px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; font-weight: 750; font-size: .9375rem; background: var(--accent); color: var(--button-ink, #fff); border: 1px solid var(--accent); border-radius: var(--radius); transition: background .18s, color .18s, border-color .18s; }
.button:hover { background: #ffb68b; border-color: #ffb68b; color: #1b1410; }
.button-nav { background: transparent; border-color: #a67c64; }
.button-nav { min-height: 40px; padding-inline: 17px; color: var(--accent); }
nav .button-nav:hover { color: #1b1410; }

.raidho-panel, .feature, footer {
  color-scheme: dark;
  --ink: #f6f3ef;
  --muted: #c3bcb4;
  --accent: #ed9a69;
  --line: #39332e;
  color: var(--ink);
}
.brand-showcase { padding-block: clamp(29px, 4vw, 56px) clamp(32px, 5vw, 62px); background: #f6f3ef; border-bottom: 1px solid var(--line); }
.showcase-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 9px 24px; margin-bottom: 21px; }
.showcase-heading h1 { font-size: clamp(1.9rem, 4.2vw, 3.75rem); font-weight: 800; line-height: 1.08; letter-spacing: -.055em; }
.showcase-heading h1 span { font-size: .55em; font-weight: 600; vertical-align: .14em; color: var(--muted); letter-spacing: 0; }
.showcase-heading p { color: var(--muted); }
.brand-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(13px, 2vw, 24px); }
.brand-panel { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); }
.raidho-panel { --button-ink: #1b1410; background: #1b1715; }
.scansonic-panel, .scansonic-section { --accent: #315866; --line: #d5e0e2; }
.scansonic-panel { background: #eaf0f1; --muted: #3f535b; }
.brand-panel-photo { position: relative; display: block; aspect-ratio: 1.85; }
.brand-panel-photo:focus-visible { outline-offset: -4px; }
.brand-panel-photo img { height: 100%; object-fit: cover; border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; }
.scansonic-panel .brand-panel-photo img { object-position: center 85%; }
.brand-panel-photo span { position: absolute; right: 12px; bottom: 12px; padding: 5px 8px; border-radius: 3px; color: #fff; background: #181818dd; font-size: .8125rem; font-weight: 700; letter-spacing: .055em; }
.brand-panel-copy { flex: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 15px; padding: clamp(16px, 2vw, 25px); }
.brand-panel-copy h2 { margin: 0; font-size: clamp(1.35rem, 2.25vw, 2rem); letter-spacing: -.025em; }
.brand-panel-copy p { margin-top: 6px; color: var(--muted); font-size: .9375rem; line-height: 1.5; }
.brand-panel-copy .button { min-height: 41px; padding-inline: 14px; text-align: center; }
.scansonic-panel .button:hover { background: #426a78; border-color: #426a78; color: #fff; }
.scansonic-section { background: #f2f6f6; border-block: 1px solid var(--line); }
.scansonic-section .catalog-search input { background: #fff; }
.scansonic-section .product-art { aspect-ratio: 1.45; background: #e9edf0; }
.scansonic-section .product-art img { object-fit: contain; }
.scansonic-notes { margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--line); }
.scansonic-notes h3 { font-size: 1.35rem; }
.scansonic-notes > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; margin-block: 8px 15px; color: var(--muted); }
.scansonic-notes strong { color: var(--ink); }
.eyebrow { font-size: .8125rem; line-height: 1.4; font-weight: 750; letter-spacing: .18em; color: var(--accent); }

.section { padding-block: 92px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 22px 40px; margin-bottom: 32px; }
h2 { font-size: clamp(2rem, 3.7vw, 3.5rem); line-height: 1.16; font-weight: 800; letter-spacing: -.045em; margin-top: 12px; }
.section-head > p { max-width: 355px; color: var(--muted); }
.store-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 19px; }
.catalog-tools { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; }
.catalog-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.catalog-nav a { padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); font-size: .9375rem; font-weight: 700; }
.catalog-nav a:hover { border-color: var(--accent); color: var(--accent); }
.catalog-search { display: grid; gap: 5px; color: var(--muted); font-size: .875rem; font-weight: 700; }
.catalog-search[hidden] { display: none; }
.catalog-search input { min-height: 40px; width: min(270px, 100%); padding: 8px 12px; background: #faf8f6; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); font: inherit; }
.catalog-empty { margin-top: 28px; color: var(--muted); }
.catalog-group { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.catalog-group > h3 { font-size: clamp(1.4rem, 2.55vw, 2rem); letter-spacing: -.035em; }
.catalog-group > p { margin-block: 6px 17px; color: var(--muted); }
.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 981px) {
  #series .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.product { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.product[hidden] { display: none; }
.product:target { outline: 2px solid var(--accent); outline-offset: 3px; scroll-margin-top: 20px; }
.product-art { aspect-ratio: 1.78; overflow: hidden; border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; background: #131312; }
.product-art img { width: 100%; height: 100%; object-fit: cover; }
#legendary .product-art img { object-fit: contain; }
.product[id="td42"] .product-art img { object-position: 8% 50%; }
.product-content { display: grid; align-content: start; gap: 6px; padding: 15px 15px 14px; }
.product h4 { margin: 0; font-size: clamp(1.05rem, 1.75vw, 1.25rem); line-height: 1.25; letter-spacing: -.025em; }
.product-content .product-type { color: var(--accent); font-size: .875rem; font-weight: 700; }
.product-content p { color: var(--muted); font-size: .9375rem; line-height: 1.55; }
.model-details dt { color: var(--muted); font-size: .8125rem; font-weight: 700; }
.model-details dd { margin-top: 2px; font-size: .875rem; line-height: 1.45; overflow-wrap: anywhere; }
.model-details { border-top: 1px solid var(--line); margin-top: 5px; }
.model-details summary { padding-block: 8px 2px; color: var(--accent); font-size: .875rem; font-weight: 700; cursor: pointer; }
.model-details dl { display: grid; gap: 0; margin-top: 5px; }
.model-details dl > div { padding-block: 6px; border-top: 1px solid var(--line); }
.text-link { display: inline-block; width: fit-content; padding-bottom: 4px; color: var(--accent); border-bottom: 1px solid #a66a4c; font-size: .9375rem; font-weight: 700; }
.text-link:hover { border-bottom-color: currentColor; }
.feature { display: grid; grid-template-columns: 1fr 1fr; background: #1a1817; border-block: 1px solid var(--line); }
.feature-image { min-width: 0; min-height: 460px; position: relative; background: #16171b; }
.feature-image img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: center; }
.feature-copy { padding: clamp(44px, 6vw, 95px) max(56px,calc((100vw - var(--width))/2)) clamp(44px, 6vw, 95px) clamp(36px, 6vw, 90px); }
.feature-copy > p:not(.eyebrow), .about p:not(.eyebrow) { color: var(--muted); margin-top: 20px; }
.specs { display: flex; gap: 28px; padding-block: 18px; border-block: 1px solid var(--line); margin-block: 22px; }
.specs dt { font-size: 1.875rem; line-height: 1.05; font-weight: 800; }
.specs dt span, .specs dd { color: var(--muted); font-size: .875rem; }
.specs dd { margin-top: 7px; }
.engineering.section { padding-bottom: 0; }
.engineering .section-head { align-items: start; gap: 12px 36px; margin-bottom: 23px; }
.engineering h2 { font-size: clamp(1.4rem, 2.35vw, 2.05rem); line-height: 1.25; letter-spacing: -.025em; }
.engineering-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.engineering-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fcfaf8; }
.engineering-card img { height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; background: #201d1b; }
.engineering-copy { padding: clamp(18px, 2vw, 25px); }
.engineering-copy h3 { font-size: 1.125rem; line-height: 1.4; }
.engineering-copy p { margin-block: 12px; color: var(--muted); }
.engineering-links { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.about { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 25px 62px; }
.about p:not(.eyebrow) { margin-top: 0; }
.about-links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 22px; }
.stores { background: #f1eeeb; border-block: 1px solid var(--line); }
.store-grid article { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; align-items: start; }
.store-grid h3 { font-size: 1.4rem; }
address { font-style: normal; color: var(--muted); margin-block: 9px 12px; }
.phone { font-size: 1.25rem; font-weight: 700; margin: auto 0 17px; }
.phone:hover { color: var(--accent); }
footer { background: #191715; }
.footer-inner { padding-block: 36px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 25px; }
.footer-inner p, .footer-inner > small { color: var(--muted); font-size: .875rem; }
.footer-inner p { margin-top: 11px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px 22px; font-size: .9375rem; }

@media (max-width: 980px) {
  .wrap { width: calc(100% - 64px); }
  .section { padding-block: 68px; }
  .feature-copy { padding-inline: 36px; }
  .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .store-grid article { padding: 20px; }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .nav-row { min-height: 65px; }
  .menu-toggle { display: grid; align-content: center; gap: 6px; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
  .menu-toggle i { display: block; width: 100%; height: 1px; background: currentColor; transition: transform .18s; }
  .menu-toggle[aria-expanded="true"] i:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  nav { display: none; position: absolute; inset: 100% 0 auto; background: #fff; padding: 12px 20px 22px; align-items: stretch; gap: 0; border-bottom: 1px solid var(--line); }
  .menu-toggle[aria-expanded="true"] + nav { display: grid; }
  nav > a:not(.button) { padding: 13px 0; border-bottom: 1px solid var(--line); }
  nav .button { margin-top: 14px; justify-self: start; }
  .section-head { display: grid; align-items: start; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .store-grid, .feature, .about { grid-template-columns: 1fr; }
  .scansonic-notes > div { grid-template-columns: 1fr; }
  .engineering-grid { grid-template-columns: 1fr; }
  .feature-image { min-height: 0; aspect-ratio: 1.6; }
  .feature-copy { padding: 34px 20px 44px; }
  .section { padding-block: 48px; }
}

@media (max-width: 520px) {
  .brand-panel-photo { aspect-ratio: 1.3; }
  .brand-panel-photo span { right: 7px; bottom: 7px; }
  .brand-panel-copy { padding: 11px; gap: 11px; align-content: space-between; }
  .brand-panel-copy h2 { font-size: 1.15rem; }
  .brand-panel-copy p { font-size: .875rem; }
  .brand-panel-copy .button { padding-inline: 8px; font-size: .875rem; }
  .product-content { padding-inline: 10px; }
  .catalog-search { width: 100%; }
  .catalog-search input { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
