:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #111111;
  --muted: #4d4d4d;
  --line: #d9d9d9;
  --brand: #bacc00;
  --brand-fg: #111400;
  --link: #111111;
  --link-hover: #bacc00;
  --focus: #111111;
  --measure: 62rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0a0a; --fg: #f2f2f2; --muted: #b3b3b3; --line: #2e2e2e; --brand: #bacc00; --brand-fg: #111400; --link: #bacc00; --link-hover: #ffffff; --focus: #bacc00;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0a0a; --fg: #f2f2f2; --muted: #b3b3b3; --line: #2e2e2e; --brand: #bacc00; --brand-fg: #111400; --link: #bacc00; --link-hover: #ffffff; --focus: #bacc00;
}
:root[data-theme="light"] { color-scheme: light; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--fg); font: 1.0625rem/1.65 var(--font); }
a { color: var(--link); text-underline-offset: .2em; }
a:hover { color: var(--link-hover); }
main a, .site-footer a { font-weight: 600; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: .5rem; top: -4rem; background: var(--brand); color: var(--brand-fg); padding: .5rem 1rem; z-index: 10; }
.skip:focus { top: .5rem; }

.site-bar { position: sticky; top: 0; background: var(--bg); border-bottom: 1px solid var(--line); z-index: 20; }
.site-header { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; justify-content: space-between;
  max-width: 72rem; margin: 0 auto; padding: .75rem 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 800; letter-spacing: .02em; font-size: 1.15rem; color: var(--fg); text-decoration: none; }
.logo { height: 2.75rem; width: auto; max-width: 100%; }
.site-header nav { display: flex; gap: 1.25rem; }
.site-header nav a { color: var(--muted); text-decoration: none; padding-block: .45rem; }
.site-header nav a:hover { color: var(--fg); text-decoration: underline; }
.nav-toggle { display: none; }
.controls { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; }
.theme[hidden] { display: none; }
.theme, .lang { position: relative; }
.theme-menu ul { min-width: 0; }
.theme-menu button { display: flex; align-items: center; justify-content: center; width: 2.75rem; min-height: 2.5rem; color: var(--fg); background: transparent; border: 0; border-radius: .3rem; cursor: pointer; }
.theme-menu button:hover { background: var(--line); }
.theme-menu button[aria-pressed="true"] { background: var(--brand); color: var(--brand-fg); }
.icon { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon .fill { fill: currentColor; }
.lang-menu summary, .theme-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; min-height: 2.25rem; padding: .25rem .7rem; border: 1px solid var(--line); border-radius: .4rem; font-weight: 600; letter-spacing: .04em; color: var(--fg); }
.lang-menu summary::-webkit-details-marker, .theme-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after, .theme-menu summary::after { content: ""; width: .45rem; height: .45rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-.1rem) rotate(45deg); }
.lang-menu[open] summary::after, .theme-menu[open] summary::after { transform: translateY(.1rem) rotate(-135deg); }
.lang-menu ul, .theme-menu ul { list-style: none; margin: .35rem 0 0; padding: .25rem; position: absolute; right: 0; min-width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: .4rem; box-shadow: 0 .5rem 1.5rem rgb(0 0 0 / .25); z-index: 30; }
.lang-menu li + li { margin: 0; }
.site-header .lang-menu a { display: block; padding: .4rem .7rem; border-radius: .3rem; font-weight: 600; letter-spacing: .04em; color: var(--fg); text-decoration: none; }
.site-header .lang-menu a:hover { background: var(--line); text-decoration: none; }
.site-header .lang-menu a[aria-current="true"] { background: var(--brand); color: var(--brand-fg); }

main { max-width: var(--measure); margin: 0 auto; padding: 0 1.25rem 3rem; }
main:focus { outline: none; }
section { padding: 2.5rem 0 0; max-width: 46rem; }
.hero { padding: clamp(3rem, 12vw, 7rem) 0 1rem; max-width: none; }
.kicker { margin: 0; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; }
h1 { margin: .5rem 0 .75rem; font-size: clamp(2.5rem, 10vw, 5.5rem); line-height: 1; letter-spacing: -.01em; overflow-wrap: anywhere; }
.lead { font-size: clamp(1.2rem, 3vw, 1.6rem); color: var(--muted); max-width: 40rem; margin: 0 auto; }
h2 { font-size: 1.6rem; line-height: 1.2; margin: 0 0 1rem; }
h3 { font-size: 1.05rem; margin: 0 0 .5rem; }
.story { display: grid; gap: 1.5rem 2.5rem; align-items: start; max-width: none; }
.story-text { max-width: 40rem; }
.portrait { margin: 0; width: 10rem; }
.portrait-img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: .75rem; border: 1px solid var(--line); }
@media (min-width: 40rem) {
  .story { grid-template-columns: 12rem minmax(0, 1fr); }
  .portrait { width: 12rem; }
}
.area { max-width: none; }
#web { --area: var(--brand); }
#graphic { --area: #f29400; }
#packhora { --area: #00b5d8; }
.area h2 { margin: 0 0 1.25rem; line-height: 0; }
#customoon h2 { display: flex; align-items: center; gap: .75rem; }
.customoon-icon { width: 3rem; height: 3rem; flex: none; }
.wm { height: 3rem; width: auto; max-width: 100%; }
.wm-dark, .logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .wm-light, :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .wm-dark, :root:not([data-theme="light"]) .logo-dark { display: inline; }
}
:root[data-theme="dark"] .wm-light, :root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .wm-dark, :root[data-theme="dark"] .logo-dark { display: inline; }
.blocks { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); }
.block { border: 1px solid var(--line); border-top: 4px solid var(--area, var(--brand)); border-radius: .5rem; padding: 1.1rem 1.25rem 1.25rem; }
.block h3 { font-size: 1.1rem; margin: 0 0 .5rem; }
.block p { margin: 0; }
.cols { display: grid; gap: 1.5rem 3rem; grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); }
address { font-style: normal; margin-top: 1rem; }
.label-icon { display: inline-flex; align-items: center; gap: .4rem; }
.label-icon .icon { width: 1rem; height: 1rem; }
.label { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; }
ul, ol { padding-left: 1.2rem; margin: 0; }
li + li { margin-top: .4rem; }
.site-footer { max-width: var(--measure); margin: 0 auto; padding: 1.5rem 1.25rem 2.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.site-footer p { margin: 0; }

@media (max-width: 56rem) {
  .site-header { flex-wrap: nowrap; gap: .5rem; padding-block: .5rem; }
  .controls { flex-wrap: nowrap; gap: .4rem; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; min-height: 2.25rem; padding: 0; color: var(--fg); background: transparent; border: 1px solid var(--line); border-radius: .4rem; cursor: pointer; }
  .nav-toggle[aria-expanded="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-fg); }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; padding: .25rem 1.25rem .75rem; background: var(--bg); border-bottom: 1px solid var(--line); }
  .site-header .site-nav a { padding: .55rem 0; font-size: 1.05rem; }
  .nav-js .site-nav:not(.open) { display: none; }
}
@media (max-width: 40rem) {
  .logo { height: 2rem; }
  .lang-menu summary, .theme-menu summary, .nav-toggle { min-height: 2rem; }
  .lang-menu summary, .theme-menu summary { padding-inline: .5rem; gap: .3rem; }
  .nav-toggle { width: 2.25rem; }
}

.legal { max-width: 52rem; margin-inline: auto; padding-top: 1.5rem; }
.legal section { max-width: none; }
.legal h1 { font-size: clamp(2rem, 6vw, 3rem); letter-spacing: 0; }
.legal h3 { margin: 1.5rem 0 .4rem; }
.legal .back { margin: 0 0 .5rem; }
.legal .back a::before { content: "← "; }
.legal .updated { color: var(--muted); margin: 0 0 1rem; }
.toc { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-bottom: .5rem; }
dl.owner { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .35rem 1.25rem; margin: 1rem 0 0; }
dl.owner dt { color: var(--muted); }
dl.owner dd { margin: 0; overflow-wrap: anywhere; }
dl.owner dd a { display: inline-block; padding-block: .3rem; }
.site-footer a { color: inherit; }
.site-footer a:hover { color: var(--link-hover); }

.hero-logo { display: block; height: clamp(4rem, 14vw, 7.5rem); width: auto; max-width: 100%; }

.contact-link { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.25rem; }
.icon-link { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.25rem; margin-left: 1rem; }
.icon-fill { fill: currentColor; stroke: none; }
.hero { text-align: center; }
.hero-logo { margin-inline: auto; }

.method { max-width: none; }

.block-calc, .block-wide { grid-column: 1 / -1; }
@media (min-width: 62rem) {
  #packhora .blocks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #packhora .block-calc { grid-column: 2 / span 2; }
}
.calc p { margin: 0 0 .75rem; }
.calc label { display: block; font-weight: 600; margin-bottom: .25rem; }
.calc input { width: 100%; max-width: 12rem; min-height: 2.75rem; padding: .4rem .7rem; font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--muted); border-radius: .4rem; }
.calc-out { display: grid; grid-template-columns: minmax(0, max-content) minmax(max-content, 1fr); gap: .3rem 1.25rem; margin: 1rem 0 .75rem; }
.calc-out dt { color: var(--muted); }
.calc-out dd { margin: 0; font-variant-numeric: tabular-nums; }
.calc-out .total { color: var(--fg); font-weight: 800; font-size: 1.2rem; }
.calc-note { color: var(--muted); font-size: .9rem; }
.calc-note:empty { display: none; }
.rates-box { margin-top: 1rem; }
.rates-box summary { cursor: pointer; font-weight: 600; min-height: 2.25rem; }
.rates { width: 100%; border-collapse: collapse; margin: .5rem 0 1rem; font-variant-numeric: tabular-nums; }
.rates th, .rates td { padding: .4rem .6rem; border-bottom: 1px solid var(--line); text-align: right; }
.rates th:first-child { text-align: left; font-weight: 600; }
.ext-link { display: inline-flex; align-items: center; gap: .35rem; vertical-align: bottom; min-height: 1.5rem; }
.ext-logo { width: 1.25rem; height: 1.25rem; border-radius: .25rem; }
@media (max-width: 40rem) {
  .rates { font-size: .85rem; }
  .rates th, .rates td { padding: .35rem .25rem; }
}

.hero-logo.logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-logo.logo-dark { display: block; }
}
:root[data-theme="dark"] .hero-logo.logo-dark { display: block; }
