/* TAG BREAKER support site. Brand: navy #0D1320, white, cyan #22D3EE, Archivo (docs/brand, CLAUDE.md). */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --navy: #0d1320;
  --navy-raised: #151d2e;
  --navy-line: #26314a;
  --white: #f2f4f7;
  --muted: #a9b3c6;
  --cyan: #22d3ee;
  --cyan-soft: rgba(34, 211, 238, 0.12);
  --font: "Archivo", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Meiryo", "Noto Sans JP",
    system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Consolas", "SFMono-Regular", monospace;
  --measure: 46rem;
  --gutter: 16px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-wrap: break-word;
}

html:lang(ja) body {
  line-height: 1.9;
  letter-spacing: 0.02em;
}

a {
  color: var(--cyan);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: var(--gutter);
  top: 8px;
  background: var(--navy-raised);
  padding: 6px 12px;
  z-index: 10;
}

/* Header and footer */

.bar {
  border-bottom: 1px solid var(--navy-line);
}

.bar-inner,
.foot-inner,
main {
  max-width: var(--measure);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: block;
  line-height: 0;
}

.brand img {
  height: 22px;
  width: auto;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav a {
  color: var(--white);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--cyan);
}

.nav .lang {
  color: var(--muted);
  text-transform: none;
}

.foot {
  margin-top: 64px;
  border-top: 1px solid var(--navy-line);
  color: var(--muted);
  font-size: 0.875rem;
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 20px;
  padding-bottom: 32px;
}

.foot a {
  color: var(--muted);
}

/* Content */

main {
  padding-top: 40px;
}

h1,
h2,
h3,
.card-text,
.faq summary {
  word-break: auto-phrase;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: 0.01em;
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(1.9rem, 6vw, 2.75rem);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
}

/* The cyan slash of the mark, under each page's title. */
h1::after {
  content: "";
  display: block;
  width: 72px;
  height: 6px;
  margin-top: 14px;
  background: var(--cyan);
  transform: skewX(-24deg);
  transform-origin: left;
}

h2 {
  margin: 48px 0 12px;
  font-size: 1.375rem;
  font-weight: 800;
}

h3 {
  margin: 32px 0 8px;
  font-size: 1.125rem;
  font-weight: 700;
}

p,
ul,
ol {
  margin: 0 0 16px;
}

ul,
ol {
  padding-left: 1.25em;
}

li + li {
  margin-top: 6px;
}

strong {
  font-weight: 700;
}

code {
  font-family: var(--mono);
  font-size: 0.875em;
  background: var(--navy-raised);
  border: 1px solid var(--navy-line);
  border-radius: 4px;
  padding: 1px 5px;
  overflow-wrap: anywhere;
}

.lead {
  color: var(--muted);
  font-size: 1.125rem;
}

.meta {
  color: var(--muted);
  font-size: 0.9375rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 16px;
  border: 1px solid var(--navy-line);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.6;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--navy-line);
}

th {
  background: var(--navy-raised);
  font-weight: 700;
}

tr:last-child td {
  border-bottom: 0;
}

/* A field still to fill before publishing: visible on purpose. */
.ph {
  background: var(--cyan-soft);
  border-bottom: 1px dashed var(--cyan);
  border-radius: 2px;
  padding: 0 3px;
  color: var(--white);
}

/* Cards: the home page and the contact box */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.card {
  display: block;
  background: var(--navy-raised);
  border: 1px solid var(--navy-line);
  border-left: 4px solid var(--cyan);
  border-radius: 8px;
  padding: 18px 20px;
  color: var(--white);
  text-decoration: none;
}

a.card:hover {
  border-color: var(--cyan);
}

.card-title {
  display: block;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.125rem;
}

.card-text {
  display: block;
  color: var(--muted);
  font-size: 0.9375rem;
  margin-top: 4px;
}

.contact {
  background: var(--navy-raised);
  border: 1px solid var(--navy-line);
  border-left: 4px solid var(--cyan);
  border-radius: 8px;
  padding: 18px 20px;
  margin: 16px 0 24px;
}

.contact p:last-child {
  margin-bottom: 0;
}

/* FAQ */

.faq details {
  border-bottom: 1px solid var(--navy-line);
}

.faq details:first-of-type {
  border-top: 1px solid var(--navy-line);
}

.faq summary {
  cursor: pointer;
  padding: 14px 28px 14px 0;
  font-weight: 700;
  list-style: none;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 12px;
  color: var(--cyan);
  font-weight: 800;
  font-size: 1.25rem;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.faq .answer {
  padding: 0 0 12px;
}

@media (max-width: 480px) {
  body {
    font-size: 1rem;
  }

  main {
    padding-top: 28px;
  }

  h2 {
    margin-top: 40px;
  }
}
