@import "fonts.css";

:root {
  --blue: #30598f;
  --blue-deep: #1e3f68;
  --ink: #16324f;
  --paper: #f7f9fc;
  --white: #ffffff;
  --mist: #e4edf6;
  --line: #d3deea;
  --tint: #e7eef6;
  --tag: #6b6b6b;
  --header: 4.75rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  scrollbar-color: var(--blue) var(--mist);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Commissioner, "Segoe UI", sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
  font-synthesis: none;
  caret-color: var(--blue);
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--blue);
  color: var(--white);
}

.top ::selection,
.cover-main ::selection,
.contact-main ::selection {
  background: var(--white);
  color: var(--ink);
}

.strip ::selection {
  background: var(--blue);
  color: var(--white);
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--mist);
}

::-webkit-scrollbar-thumb {
  background: var(--blue);
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
}

a {
  color: var(--blue);
  text-underline-offset: 0.2em;
}

p {
  margin: 0;
  max-width: 68ch;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Barlow, "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
  text-wrap: balance;
  hyphens: none;
}

h1 {
  font-size: clamp(2.4rem, 7vw, 6rem);
}

h3 {
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  font-weight: 600;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: visible;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 20;
  background: var(--white);
  color: var(--ink);
  padding: 0.6rem 1rem;
  font-family: Barlow, sans-serif;
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.top :focus-visible,
.cover-main :focus-visible,
.contact-main :focus-visible {
  outline-color: var(--white);
}

.strip :focus-visible {
  outline-color: var(--ink);
}

.col {
  width: min(72rem, 100%);
  margin-inline: auto;
}

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--blue);
  color: var(--white);
  padding-inline: 1.25rem;
}

.top-bar {
  min-height: var(--header);
  display: flex;
  align-items: center;
  gap: 1.25rem 1.75rem;
  padding-block: 0.85rem;
}

.brand {
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand-name {
  font-family: Barlow, sans-serif;
  font-weight: 700;
  font-size: clamp(0.92rem, 2.6vw, 1.2rem);
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
}

.brand:hover {
  color: var(--white);
}

.mark {
  width: 2.65rem;
  height: auto;
  aspect-ratio: 366 / 327;
  overflow: visible;
  flex: 0 0 auto;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  margin-left: auto;
}

.nav a,
.phone {
  color: var(--white);
  font-family: Barlow, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.phone {
  font-variant-numeric: tabular-nums;
  flex: 0 0 auto;
}

.nav a:hover,
.phone:hover,
.textlink:hover {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.cover {
  position: relative;
  min-height: calc(100svh - var(--header));
  display: flex;
  flex-direction: column;
  background: var(--blue);
  color: var(--white);
  overflow: hidden;
}

.scene {
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: 4.5rem;
  width: min(62rem, 80%);
  height: auto;
  color: var(--white);
  opacity: 0.22;
  pointer-events: none;
}

.cover-main,
.strip {
  position: relative;
  z-index: 1;
}

.cover-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 2.5rem 1.25rem 2rem;
}

.lockline {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.cover-mark {
  width: 1.12em;
  height: auto;
  aspect-ratio: 366 / 327;
  overflow: visible;
  flex: 0 0 auto;
  color: var(--white);
}

.name {
  display: block;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.88;
}

.line {
  display: block;
  max-width: 34rem;
  margin-top: 1.25rem;
  font-family: Commissioner, sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
  text-wrap: balance;
}

.strip {
  background: var(--white);
  color: var(--ink);
  padding-inline: 1.25rem;
}

.strip-row,
.contact-actions,
.dock-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-block: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3.25rem;
  padding: 0.75rem 1.2rem;
  border: 1.5px solid transparent;
  font-family: Barlow, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}

.btn-fill {
  background: var(--blue);
  color: var(--white);
}

.btn-fill:hover {
  background: var(--blue-deep);
  color: var(--white);
}

.btn-line {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}

.btn-line:hover {
  background: var(--tint);
  color: var(--blue);
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
}

.sheet,
.place {
  background: var(--paper);
}

.place {
  background: var(--mist);
}

.band {
  padding: 6.5rem 1.25rem 4.5rem;
}

.band h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin-bottom: 0.85rem;
}

.copy h3 {
  margin-top: 2.25rem;
  margin-bottom: 0.65rem;
}

.copy p + p {
  margin-top: 0.75rem;
}

.accordion {
  margin-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.acc {
  border-bottom: 1px solid var(--line);
}

.acc.is-open {
  background: var(--tint);
}

.acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.75rem;
  padding: 1rem 0.85rem;
  font-family: Barlow, sans-serif;
  font-weight: 600;
  font-size: clamp(1.12rem, 2vw, 1.4rem);
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ink);
}

.acc-btn:hover {
  color: var(--blue);
}

.chev {
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 auto;
  transition: transform 0.45s var(--ease);
}

.acc.is-open .chev {
  transform: rotate(180deg);
}

.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.5s var(--ease), opacity 0.4s var(--ease);
}

.acc.is-open .acc-panel,
.no-js .acc-panel {
  grid-template-rows: 1fr;
  opacity: 1;
}

.acc-inner {
  overflow: hidden;
}

.acc-inner p {
  padding: 0 0.85rem 1.15rem;
}

.hint {
  margin-bottom: 2rem;
}

.rows {
  border-top: 1px solid var(--line);
}

.row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
  padding: 1.15rem 0.85rem;
  border-bottom: 1px solid var(--line);
}

.svc {
  font-family: Barlow, sans-serif;
  font-weight: inherit;
  font-size: inherit;
  letter-spacing: -0.03em;
  line-height: 1.1;
  min-height: 3rem;
  color: var(--ink);
}

.svc:hover {
  color: var(--blue);
}

.detail {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
  transition: grid-template-rows 0.55s var(--ease), opacity 0.45s var(--ease);
}

.detail-inner {
  overflow: hidden;
}

.rows.is-solo .row:not(.is-on) {
  padding-block: 0.45rem;
}

.rows.is-solo .row:not(.is-on) .detail {
  grid-template-rows: 0fr;
  opacity: 0;
}

.rows.is-solo .row.is-on {
  background: var(--tint);
}

.row:hover {
  background: #f3f7fb;
}

.rows.is-solo .row.is-on:hover {
  background: var(--tint);
}

.no-js .hint {
  display: none;
}

.restore {
  display: none;
  margin-top: 1.5rem;
  min-height: 3rem;
  padding: 0.65rem 1.1rem;
  border: 1px solid var(--blue);
  font-family: Barlow, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--white);
  background: var(--blue);
}

.rows.is-solo + .restore {
  display: inline-block;
}

.restore:hover {
  background: var(--blue-deep);
  color: var(--white);
}

.restore:disabled {
  cursor: default;
}

.place-grid {
  display: grid;
  gap: 2.5rem;
}

.place address,
.plate address {
  font-style: normal;
  margin-top: 0.85rem;
  line-height: 1.55;
}

.place p + p,
.place address + p {
  margin-top: 0.85rem;
}

.textlink {
  display: inline-block;
  margin-top: 1.25rem;
  font-family: Barlow, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--blue);
}

figure.plan svg {
  width: 100%;
  height: auto;
  background: var(--white);
  border: 1px solid var(--blue);
  padding: 0.8rem;
}

figure.plan {
  margin: 0;
}

figure.plan figcaption {
  margin-top: 0.85rem;
  max-width: 42ch;
  font-size: 1rem;
  line-height: 1.5;
}

.contact-main {
  background: var(--blue);
  color: var(--white);
}

.contact-main h2 {
  font-variant-numeric: tabular-nums;
  font-size: clamp(2.6rem, 6vw, 4.75rem);
  color: var(--white);
}

.contact-main p {
  margin-top: 1rem;
  color: var(--white);
}

.contact-main .btn-fill {
  background: var(--white);
  color: var(--ink);
}

.contact-main .btn-fill:hover {
  background: var(--tint);
  color: var(--ink);
}

.contact-main .btn-line {
  color: var(--white);
  border-color: var(--white);
}

.contact-main .btn-line:hover {
  background: var(--blue-deep);
  color: var(--white);
}

.plate {
  background: var(--white);
  color: var(--ink);
  padding: 2.5rem 1.25rem 2.75rem;
}

.plate-grid {
  display: grid;
  gap: 2rem;
  align-items: end;
}

.lockup {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--blue);
}

.lockup p {
  max-width: none;
  line-height: 1;
}

.lockup-name {
  display: block;
  font-family: Barlow, sans-serif;
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  line-height: 0.9;
}

.tag {
  display: block;
  margin-top: 0.28rem;
  color: var(--tag);
  font-family: Barlow, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0;
  line-height: 1.2;
}

.plate address a {
  color: var(--blue);
  font-variant-numeric: tabular-nums;
  text-decoration-thickness: 1px;
}

.dock {
  display: none;
}

@media (max-width: 759px) {
  :root {
    --header: 7.35rem;
  }

  .top-bar {
    flex-wrap: wrap;
    align-content: center;
    row-gap: 0.35rem;
  }

  .nav {
    order: 3;
    flex-basis: 100%;
    margin-left: 0;
  }

  .phone {
    margin-left: auto;
  }

  .strip-row,
  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  body:has(.dock.is-on) {
    padding-bottom: calc(4.75rem + env(safe-area-inset-bottom));
  }

  h1 {
    font-size: clamp(1.45rem, 7.6vw, 2.35rem);
  }

  .scene {
    width: 112%;
    right: 0;
    bottom: 10.5rem;
    opacity: 0.32;
  }

  .dock {
    display: block;
    position: fixed;
    padding-inline: 0.75rem;
    inset-inline: 0;
    bottom: 0;
    z-index: 6;
    background: var(--white);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
    visibility: hidden;
    pointer-events: none;
  }

  .dock.is-on {
    visibility: visible;
    pointer-events: auto;
  }

  .dock-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0.65rem 0.75rem;
  }

  .dock .btn {
    width: 100%;
  }
}

@media (min-width: 760px) {
  .row {
    grid-template-columns: 15rem minmax(0, 1fr);
    column-gap: 2rem;
    align-items: start;
  }

  .place-grid,
  .plate-grid {
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 1.05fr);
    gap: 3rem;
  }

  .plate-grid {
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media print {
  .top,
  .dock,
  .strip,
  .restore,
  .hint {
    display: none;
  }

  body {
    background: white;
    color: black;
    padding: 0;
  }

  .cover,
  .contact-main {
    background: white;
    color: black;
    min-height: 0;
  }

  .name,
  .contact-main h2,
  .line,
  .contact-main p {
    color: black;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
  }
}
