/* PICKPHAT — static semantic layout (HTML/CSS only) */
:root {
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-muted: #f8fafc;
  --color-ink: #0f172a;
  --color-ink-soft: #475569;
  --color-border: #e2e8f0;
  --color-accent: #dc2626;
  --color-accent-soft: #fecaca;
  --shadow-card: 4px 4px 0 0 #0f172a;
  --shadow-form: 8px 8px 0 0 #0f172a;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --radius-2xl: 3rem;
  --font-sans: "Zen Kaku Gothic New", system-ui, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --header-h: 5rem;
  --max: 80rem;
  --max-narrow: 64rem;
  --max-contact: 48rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body > main {
  flex: 1 0 auto;
}

::selection {
  background: var(--color-accent);
  color: #fff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#home figcaption,
#profile > article > figure figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
body > header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 1.25rem max(1.5rem, calc((100% - var(--max)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.5rem;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid transparent;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

header h1 {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

header h1 > a {
  position: relative;
  z-index: 60;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-ink);
}

header h1 > a span {
  color: var(--color-accent);
}

header h1 > a:hover span,
header h1 > a:focus-visible span {
  color: #b91c1c;
}

header button[aria-controls="site-nav"] {
  position: relative;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--color-ink);
  cursor: pointer;
  font: inherit;
}

header button[aria-controls="site-nav"]:hover,
header button[aria-controls="site-nav"]:focus-visible {
  color: var(--color-accent);
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

header button[aria-controls="site-nav"] span[aria-hidden="true"] {
  display: block;
  width: 1.6rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

header button[aria-controls="site-nav"][aria-expanded="true"] span[aria-hidden="true"]:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

header button[aria-controls="site-nav"][aria-expanded="true"] span[aria-hidden="true"]:nth-child(2) {
  opacity: 0;
}

header button[aria-controls="site-nav"][aria-expanded="true"] span[aria-hidden="true"]:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 767px) {
  :root {
    --header-h: 3.625rem;
  }

  body > header {
    padding: 0.5rem max(1rem, calc((100% - var(--max)) / 2));
    gap: 0.75rem;
    min-height: 0;
  }

  header h1 > a {
    font-size: 1.8rem;
  }

  header button[aria-controls="site-nav"] {
    width: 2.5rem;
    height: 2.5rem;
    gap: 5px;
  }

  header button[aria-controls="site-nav"] span[aria-hidden="true"] {
    width: 1.35rem;
  }

  header button[aria-controls="site-nav"][aria-expanded="true"] span[aria-hidden="true"]:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  header button[aria-controls="site-nav"][aria-expanded="true"] span[aria-hidden="true"]:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

#site-nav {
  position: relative;
  z-index: 1;
}

/* [hidden] より MQuery 内の display が勝たないようにする */
#site-nav[hidden] {
  display: none !important;
}

@media (max-width: 767px) {
  #site-nav {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: var(--header-h) 1.5rem 2rem;
  }

  #site-nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  #site-nav a {
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--color-ink);
    position: relative;
    padding-bottom: 0.15rem;
  }

  #site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
  }

  #site-nav a:hover,
  #site-nav a:focus-visible {
    color: var(--color-accent);
  }

  #site-nav a:hover::after,
  #site-nav a:focus-visible::after {
    transform: scaleX(1);
  }
}

@media (min-width: 768px) {
  header h1 > a {
    font-size: 1.875rem;
  }

  header h1 > a img {
    display: block;
    height: 2.5rem;
    width: auto;
  }

  header button[aria-controls="site-nav"] {
    display: none;
  }

  #site-nav {
    display: block;
    margin-left: auto;
  }

  #site-nav ul {
    display: flex;
    align-items: center;
    gap: 2.5rem;
  }

  #site-nav a {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--color-ink-soft);
    position: relative;
    padding-bottom: 0.15rem;
  }

  #site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
  }

  #site-nav a:hover,
  #site-nav a:focus-visible {
    color: var(--color-accent);
  }

  #site-nav a:hover::after,
  #site-nav a:focus-visible::after {
    transform: scaleX(1);
  }
}

/* Hero */
#home {
  padding: calc(var(--header-h) + 2rem) 1.5rem 5rem;
  overflow: hidden;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

@media (min-width: 1024px) {
  #home {
    flex-direction: row;
    gap: 4rem;
    align-items: center;
  }
}

#home #hero-heading {
  flex: 1;
  margin: 0;
  text-align: center;
  font-size: clamp(2.25rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.2;
  color: var(--color-ink);
}

@media (min-width: 1024px) {
  #home #hero-heading {
    text-align: left;
  }
}

#home #hero-heading span {
  display: inline-block;
  white-space: nowrap;
}

#home #hero-heading span:last-child {
  color: var(--color-accent);
}

#home > figure {
  flex: 1;
  width: 100%;
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
  position: relative;
}

#home > figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

#home > figure:hover img,
#home > figure:focus-within img {
  transform: scale(1.05);
}

#home > figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(127, 29, 29, 0.1);
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* Sections (except hero) */
#service,
#profile {
  background: var(--color-surface);
}

#works {
  background: var(--color-muted);
}

#contact {
  background: var(--color-bg);
}

#thanks {
  background: var(--color-bg);
}

main > section:not(#home) {
  padding: 6rem 1.5rem;
  scroll-margin-top: var(--header-h);
}

main > section:not(#home) > * {
  width: 100%;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

#profile > * {
  max-width: var(--max-narrow);
}

#contact > * {
  max-width: var(--max-contact);
}

#thanks > * {
  max-width: var(--max);
}

main > section:not(#home) > header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

#contact > header {
  margin-bottom: 2rem;
}

#thanks > header {
  margin-bottom: 2rem;
}

#thanks > header > p {
  color: rgba(15, 23, 42, 0.06);
}

main > section:not(#home) > header > p {
  position: absolute;
  left: 50%;
  top: -2rem;
  transform: translateX(-50%);
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 9rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: rgba(15, 23, 42, 0.08);
  pointer-events: none;
  user-select: none;
  line-height: 1;
  z-index: 0;
}

#works > header > p {
  color: rgba(15, 23, 42, 0.12);
}

#contact > header > p {
  color: rgba(15, 23, 42, 0.06);
}

main > section:not(#home) > header > h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-ink);
}

main > section:not(#home) > header > h2 > span:first-of-type {
  display: inline-block;
}

main > section:not(#home) > header > h2 > span:first-of-type > span:first-child {
  color: var(--color-accent);
}

main > section:not(#home) > header > h2 > span[aria-hidden="true"] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

main > section:not(#home) > header > h2 > span[aria-hidden="true"]::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

main > section:not(#home) > header > h2 > span[aria-hidden="true"]::after {
  content: "";
  width: 32px;
  height: 2px;
  border-radius: 999px;
  background: var(--color-accent);
}

/* Service */
#service ul {
  display: grid;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  #service ul {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  #service ul {
    grid-template-columns: repeat(3, 1fr);
  }
}

#service article {
  height: 100%;
  padding: clamp(2rem, 4vw, 2.75rem);
  background: var(--color-bg);
  border: 2px solid var(--color-ink);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

#service article > div[aria-hidden="true"] {
  position: relative;
  width: 4rem;
  height: 4rem;
  margin-bottom: 2rem;
}

#service article > div[aria-hidden="true"]::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  width: 100%;
  height: 100%;
  background: #f87171;
  border-radius: 1.15rem;
}

#service article > div[aria-hidden="true"] > div {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 4px solid var(--color-ink);
  border-radius: 1.15rem;
}

#service article svg {
  width: 2rem;
  height: 2rem;
  color: var(--color-ink);
}

#service article h3 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--color-ink);
}

#service article p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-ink-soft);
  line-height: 1.75;
}

/* Works */
#works ul {
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  #works ul {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  #works ul {
    grid-template-columns: repeat(3, 1fr);
  }
}

#works article {
  height: 100%;
}

#works article a {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 18rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

@media (min-width: 768px) {
  #works article a {
    min-height: 20rem;
  }
}

#works article a:hover,
#works article a:focus-visible {
  border-color: #fca5a5;
  box-shadow: 0 20px 40px rgba(127, 29, 29, 0.08);
}

#works article a:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

#works article a > div:has(> img) {
  flex: 1;
  min-height: 10rem;
  overflow: hidden;
  background: #f1f5f9;
  transition: background 0.25s ease;
}

#works article a:hover > div:has(> img),
#works article a:focus-visible > div:has(> img) {
  background: #e2e8f0;
}

#works article a > div:has(> img) img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 10rem;
  object-fit: cover;
  transition: transform 0.35s ease;
}

#works article a:hover > div:has(> img) img,
#works article a:focus-visible > div:has(> img) img {
  transform: scale(1.04);
}

#works article a > div + div {
  position: relative;
  padding: 1.5rem;
  border-top: 1px solid #f1f5f9;
  background: #fff;
  text-align: center;
}

#works article h3 {
  position: relative;
  margin: 0;
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--color-ink);
  transition: color 0.2s ease;
}

#works article h3 svg {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-left: 0;
  vertical-align: -0.2em;
  color: var(--color-ink-soft);
}

#works article a:hover h3 svg,
#works article a:focus-visible h3 svg {
  color: var(--color-accent);
}

#works article a:hover h3,
#works article a:focus-visible h3 {
  color: var(--color-accent);
}

/* Profile */
#profile > article {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  padding: clamp(2rem, 5vw, 5rem);
  background: var(--color-muted);
  border-radius: var(--radius-2xl);
  overflow: hidden;
}

#profile > article::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 16rem;
  height: 16rem;
  background: #fecaca;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.5;
  transform: translate(30%, -40%);
  pointer-events: none;
}

@media (min-width: 768px) {
  #profile > article {
    flex-direction: row;
    align-items: flex-start;
  }
}

#profile > article > figure {
  flex-shrink: 0;
  width: 12rem;
  height: 12rem;
  margin: 0;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
  background: #e2e8f0;
  display: block;
  overflow: hidden;
  position: relative;
}

@media (min-width: 768px) {
  #profile > article > figure {
    width: 16rem;
    height: 16rem;
  }
}

#profile > article > figure > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

#profile > article > div {
  flex: 1;
  position: relative;
  z-index: 1;
  text-align: center;
}

@media (min-width: 768px) {
  #profile > article > div {
    text-align: left;
  }
}

#profile > article > div > h3 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--color-ink);
}

#profile > article > div > h3 span[lang="en"] {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--color-ink-soft);
}

#profile > article > div > p {
  margin: 0 0 1rem;
  color: var(--color-ink-soft);
  text-align: left;
}

#profile > article > div > p:last-of-type {
  margin-bottom: 2rem;
}

#profile > article > div > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 768px) {
  #profile > article > div > ul {
    justify-content: flex-start;
  }
}

#profile > article > div > ul a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: #fff;
  font-size: 0.875rem;
  font-weight: 800;
  color: #334155;
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

#profile > article > div > ul a svg {
  display: block;
  flex-shrink: 0;
}

#profile > article > div > ul a:hover,
#profile > article > div > ul a:focus-visible {
  color: var(--color-accent);
  border-color: #fecaca;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  outline: none;
}

#profile > article > div > ul a:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* Contact */
#contact > p {
  margin: 0 0 2.5rem;
  text-align: center;
  color: var(--color-ink-soft);
  font-size: 1.125rem;
}

#contact > p > br {
  display: none;
}

@media (min-width: 768px) {
  #contact > p > br {
    display: inline;
  }
}

#contact form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: clamp(2rem, 4vw, 3rem);
  background: #fff;
  border: 2px solid var(--color-ink);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-form);
}

#contact #contact-honeypot {
  display: none;
}

#contact form > div {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#contact form label {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--color-ink);
}

#contact form label span {
  display: inline-block;
  margin-left: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--color-accent);
}

#contact form input,
#contact form textarea {
  width: 100%;
  padding: 1rem 1rem;
  border: 2px solid var(--color-border);
  border-radius: 0.875rem;
  background: var(--color-bg);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#contact form input:focus-visible,
#contact form textarea:focus-visible {
  outline: 2px solid var(--color-ink-soft);
  outline-offset: 2px;
  border-color: var(--color-border);
  box-shadow: none;
}

#contact form input:required:user-invalid,
#contact form textarea:required:user-invalid {
  border-color: #b91c1c;
  background: #fef2f2;
  box-shadow: 0 0 0 1px rgba(185, 28, 28, 0.35);
}

#contact form input:required:focus-visible:user-invalid,
#contact form textarea:required:focus-visible:user-invalid {
  outline: 2px solid var(--color-ink-soft);
  outline-offset: 2px;
  border-color: #b91c1c;
  box-shadow: 0 0 0 1px rgba(185, 28, 28, 0.35);
}

#contact form input:required:user-valid,
#contact form textarea:required:user-valid {
  border-color: #15803d;
  box-shadow: 0 0 0 1px rgba(22, 101, 52, 0.25);
}

#contact form input:required:focus-visible:user-valid,
#contact form textarea:required:focus-visible:user-valid {
  outline: 2px solid var(--color-ink-soft);
  outline-offset: 2px;
  border-color: #15803d;
  box-shadow: 0 0 0 1px rgba(22, 101, 52, 0.25);
}

#contact form > div:has(input:user-invalid) label,
#contact form > div:has(textarea:user-invalid) label {
  color: #991b1b;
}

#contact form > div:has(input:user-invalid) label span,
#contact form > div:has(textarea:user-invalid) label span {
  color: #b91c1c;
}

#contact form textarea {
  resize: vertical;
  min-height: 8rem;
}

#contact form button[type="submit"] {
  margin-top: 0.5rem;
  width: 100%;
  padding: 1rem 1.25rem;
  border: none;
  border-radius: 0.875rem;
  background: var(--color-ink);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.2s ease, transform 0.15s ease;
}

#contact form button[type="submit"]:hover {
  background: var(--color-accent);
}

#contact form button[type="submit"]:focus-visible {
  outline: 2px solid var(--color-ink-soft);
  outline-offset: 3px;
}

#contact form button[type="submit"]:active {
  transform: translateY(1px);
}

#contact form button[type="submit"] svg {
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: transform 0.2s ease;
}

#contact form button[type="submit"]:hover svg,
#contact form button[type="submit"]:focus-visible svg {
  transform: translateX(5px);
}

/* Thanks (送信完了) */
#thanks > article {
  margin: 0;
  padding: clamp(2rem, 4vw, 3rem);
  background: #fff;
  border: 2px solid var(--color-ink);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-form);
  text-align: center;
}

#thanks > article > p {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  color: var(--color-ink-soft);
  line-height: 1.75;
}

#thanks > article > p:first-of-type {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-ink);
}

#thanks > article > p:last-child {
  margin-bottom: 0;
}

#thanks > article > p:last-child a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 1rem 1.5rem;
  border-radius: 0.875rem;
  background: var(--color-ink);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

#thanks > article > p:last-child a:hover,
#thanks > article > p:last-child a:focus-visible {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(127, 29, 29, 0.25);
  outline: none;
}

#thanks > article > p:last-child a:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

/* Footer */
body > footer {
  flex-shrink: 0;
  background: var(--color-surface);
  border-top: 2px solid #f1f5f9;
  padding: 3rem max(1.5rem, calc((100% - var(--max)) / 2));
  display: grid;
  gap: 2rem;
  text-align: center;
  justify-items: center;
}

@media (max-width: 767px) {
  body > footer {
    padding: 3rem max(1rem, calc((100% - var(--max)) / 2));
  }
}

body > footer > div:first-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

body > footer > div:first-child > p:first-child {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-ink);
}

body > footer > div:first-child > p:first-child span {
  color: var(--color-accent);
}

body > footer > div:first-child > p:last-child {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-ink-soft);
  max-width: 28rem;
}

body > footer > p:last-child {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-ink-soft);
}

@media (min-width: 768px) {
  body > footer {
    grid-template-columns: 1fr auto;
    text-align: left;
    justify-items: stretch;
    align-items: start;
  }

  body > footer > div:first-child {
    align-items: flex-start;
    grid-column: 1;
  }

  body > footer > p:last-child {
    grid-column: 2;
    align-self: center;
    justify-self: end;
  }
}
