:root {
  --paper: #EEE9DF;
  --ink: #26322E;
  --muted: #68716C;
  --copper: #9A4F32;
  --copper-active: #7E3F28;
  --logo-field: #F7F4ED;
  --rule: color-mix(in srgb, var(--ink) 20%, transparent);

  color: var(--ink);
  background: var(--paper);
  font-family: "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: clamp(1.25rem, 4vw, 5rem) clamp(1.25rem, 5vw, 5rem)
    clamp(1.5rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: clamp(2rem, 8vh, 5.5rem);
}

.page-frame {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding-bottom: clamp(2rem, 6vh, 4rem);
}

.status {
  grid-column: 1 / -1;
  margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
  padding-top: 0.85rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.78125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.identity-rail {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin: 0 0 clamp(1.75rem, 4vw, 2.5rem);
}

.logo-plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: #F7F4ED;
  border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
}

.brand-mark {
  display: block;
  width: clamp(112px, 28vw, 168px);
  max-width: 100%;
  height: auto;
}

.company-name {
  margin: 0;
  color: var(--ink);
  font-size: clamp(0.875rem, 1.4vw, 1rem);
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.notice-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

h1 {
  max-width: 11ch;
  margin: 0 0 clamp(1.75rem, 4vw, 2.75rem);
  color: var(--ink);
  font-size: clamp(2.75rem, 7vw, 4.75rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.contact-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  max-width: 38ch;
}

.inquiry {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.6;
}

.contact-action {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  max-width: 100%;
  padding: 0.35rem 0 0.45rem;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 28%, transparent);
  color: inherit;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease, border-bottom-width 160ms ease;
}

.contact-action:hover {
  color: var(--copper);
  border-bottom-color: var(--copper);
  border-bottom-width: 2px;
}

.contact-action:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 0.35rem;
  border-radius: 0.125rem;
}

.contact-action:active {
  color: var(--copper-active);
  border-bottom-color: var(--copper-active);
}

.page-end {
  grid-column: 1 / -1;
  width: min(8rem, 40%);
  height: 0;
  margin-top: clamp(2.75rem, 8vh, 5rem);
  border-top: 1px solid var(--rule);
}

@media (min-width: 64rem) {
  .page-frame {
    /* ~32% identity / ~60% notice of free space after gap (within 30–34% / 58–62%) */
    grid-template-columns: minmax(0, 0.32fr) minmax(0, 0.6fr);
    column-gap: clamp(3rem, 6vw, 7rem);
    row-gap: 0;
    align-items: start;
  }

  .status {
    margin-bottom: clamp(2rem, 3.5vw, 2.75rem);
  }

  .identity-rail {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
    gap: 1.25rem;
  }

  .notice-column {
    grid-column: 2;
    grid-row: 2;
  }

  .page-end {
    grid-row: 3;
  }

  h1 {
    margin-bottom: clamp(2rem, 3.5vw, 3rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
