/* Cormorant Garamond, self-hosted (SIL OFL, see assets/fonts/OFL.txt).
   Variable files: one file per style covers every weight from 300 to 700.
   The italic is only downloaded once something on the page uses it. */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/CormorantGaramond-VariableFont_wght.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/CormorantGaramond-Italic-VariableFont_wght.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --font-serif: "Cormorant Garamond", "Times New Roman", Times, serif;

  --color-bg: #14110f;
  --color-ink: #ffffff;

  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);

  --gutter: clamp(1rem, 4vw, 3rem);
  --header-h: clamp(4rem, 3.25rem + 2vw, 5.5rem);

  /* Project titles: same size in the carousel and on the mosaic */
  --title-size: clamp(1.25rem, 1rem + 0.6vw, 1.625rem);
}

/* Light theme: every inner page (Photography, Books, About, Contact).
   The home stays dark; only the tokens change, the components don't. */
.theme-light {
  --color-bg: #f4f4f2;
  --color-ink: #14110f;
  --color-muted: rgb(20 17 15 / 0.6);
  --color-placeholder: #e6e5e1;
  --color-error: #a1301f;
}

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

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

body {
  margin: 0;
  /* Page margin, shared by every page: sections never add their own side padding */
  margin-inline: var(--gutter);
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-ink);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

h1,
p,
ul {
  margin: 0;
}

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

a {
  color: inherit;
}

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

/* Link hover
   ==========================================================================
   One effect for every link: a hairline underline under the text, grown
   from the centre outward. Links that wrap an image (slide, tile) draw it
   under their title only. content-box keeps the line off the padding, so
   on the menus it hugs the word, not the hit area. */
:is(.main-nav, .site-menu) a,
.slide__title,
.tile__title,
.social__name,
.contact-form__submit-label {
  background: linear-gradient(currentColor, currentColor) no-repeat 50% 100% / 0 1px;
  background-origin: content-box;
  background-clip: content-box;
  transition: background-size 0.4s var(--ease-out);
}

@media (hover: hover) {
  :is(.main-nav, .site-menu) a:hover,
  .slide__link:hover .slide__title,
  .tile__link:hover .tile__title,
  .social__link:hover .social__name,
  .contact-form__submit:hover .contact-form__submit-label {
    background-size: 100% 1px;
  }
}

/* Home only: the photo bleeds to the screen edges, the hero keeps the margin for its text */
.home {
  margin-inline: 0;
}

.hero {
  /* Name size drives the whole lockup: the role line is derived from it */
  --name-size: clamp(2rem, 1.3rem + 2.2vw, 5rem);
  --name-track: 0.06em;

  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  justify-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding-inline: var(--gutter);
  overflow: hidden;
  text-shadow: 0 1px 18px rgb(0 0 0 / 0.35);
}

.hero__image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

/* Soft scrim: keeps white text readable over the light table at the bottom */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 40% at 50% 48%, rgb(0 0 0 / 0.18), transparent 70%),
    linear-gradient(to bottom, transparent 55%, rgb(0 0 0 / 0.5) 100%);
  pointer-events: none;
}

/* Brand lockup: the grid is as wide as the name only, the role stretches to it */
.brand {
  grid-row: 2;
  display: grid;
  width: max-content;
  max-width: 100%;
  text-align: center;
}

.brand__name {
  font-size: var(--name-size);
  font-weight: 700;
  line-height: 1;
  letter-spacing: var(--name-track);
  text-transform: uppercase;
  /* Cancel the tracking after the last letter so the lockup stays optically centred */
  margin-inline-end: calc(var(--name-track) * -1);
}

.brand__role {
  /* Contributes no width: the column is sized by the name alone */
  contain: inline-size;
  margin-top: calc(var(--name-size) * 0.32);
  /* Proportional to the name, never below 1rem */
  font-size: max(1rem, var(--name-size) * 0.40);
  line-height: 1;
  text-transform: uppercase;
  /* Spread the letters edge to edge of the name */
  text-align: justify;
  text-align-last: justify;
  font-weight: 500;
}

/* Main navigation
   ========================================================================== */
.main-nav {
  grid-row: 3;
  align-self: end;
  width: min(100%, 54rem);
  padding-bottom: clamp(2rem, 11dvh, 8rem);
}

.main-nav__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0;
  list-style: none;
  text-align: center;
}

.main-nav a {
  padding: 0.75rem 0.25rem;
  font-size: clamp(1.0625rem, 0.95rem + 0.3vw, 1.3125rem);
  line-height: 1.3;
}

/* Shared by the home menu and the inner-page header */
:is(.main-nav, .site-menu) a {
  display: inline-block;
  letter-spacing: 0.02em;
  text-decoration: none;
}

:is(.main-nav, .site-menu) a:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 0.25rem;
}

/* Current page: grey, and no hover underline */
.site-menu a[aria-current="page"] {
  color: var(--color-muted);
  background: none;
}

/* Small screens: 2 × 2 menu */
@media (width < 40rem) {
  .main-nav__list {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 0.25rem;
  }
}

/* Entrance
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .brand,
  .main-nav {
    animation: rise-in 1.4s var(--ease-out) both;
  }

  .main-nav {
    animation-delay: 0.35s;
  }

  @keyframes rise-in {
    from {
      opacity: 0;
      translate: 0 0.75rem;
    }
  }
}

/* Site header (inner pages)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  block-size: var(--header-h);
  background-color: var(--color-bg);
}

.site-logo {
  --track: 0.06em;

  font-size: clamp(1.375rem, 1rem + 1.25vw, 2.5rem);
  line-height: 1;
  letter-spacing: var(--track);
  /* Cancel the tracking after the last letter, as on the home lockup */
  margin-inline-end: calc(var(--track) * -1);
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.site-logo:focus-visible,
.menu-button:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 0.25rem;
}

.site-menu {
  padding: 0;
  list-style: none;
}

/* Menu button: two hairlines that cross into an X while the menu is open */
.menu-button {
  display: grid;
  place-items: center;
  inline-size: 2.75rem;
  block-size: 2.75rem;
  /* Optical alignment: the lines, not the hit area, sit on the gutter */
  margin-inline-end: -0.5rem;
  padding: 0;
  border: 0;
  color: inherit;
  background: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.menu-button__icon {
  position: relative;
  inline-size: 1.75rem;
  block-size: 0.5rem;
}

.menu-button__icon::before,
.menu-button__icon::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 50%;
  block-size: 1.5px;
  margin-top: -0.75px;
  background-color: currentColor;
}

.menu-button__icon::before {
  translate: 0 -0.25rem;
}

.menu-button__icon::after {
  translate: 0 0.25rem;
}

/* Open state read straight from the popover: no JS, no class to keep in sync.
   `.\:popover-open` is the class the polyfill sets on older browsers. */
.menu-button:has(+ .site-menu:is(:popover-open, .\:popover-open)) .menu-button__icon::before {
  translate: 0 0;
  rotate: 45deg;
}

.menu-button:has(+ .site-menu:is(:popover-open, .\:popover-open)) .menu-button__icon::after {
  translate: 0 0;
  rotate: -45deg;
}

@media (prefers-reduced-motion: no-preference) {
  /* Closing: straighten first, then spread apart */
  .menu-button__icon::before,
  .menu-button__icon::after {
    transition:
      rotate 0.22s var(--ease-out),
      translate 0.22s var(--ease-out) 0.16s;
  }

  /* Opening: meet in the middle first, then rotate */
  .menu-button:has(+ .site-menu:is(:popover-open, .\:popover-open)) .menu-button__icon::before,
  .menu-button:has(+ .site-menu:is(:popover-open, .\:popover-open)) .menu-button__icon::after {
    transition:
      translate 0.22s var(--ease-out),
      rotate 0.3s var(--ease-out) 0.16s;
  }
}

/* Small screens: the list is a native popover panel under the header */
@media (width < 60rem) {
  .site-menu {
    position: fixed;
    inset: var(--header-h) 0 0;
    inline-size: auto;
    block-size: auto;
    max-inline-size: none;
    max-block-size: none;
    margin: 0;
    /* The panel lives in the top layer, outside the body: it needs the margin itself */
    padding: clamp(1.5rem, 6dvh, 3.5rem) var(--gutter);
    overflow-y: auto;
    color: var(--color-ink);
    background-color: var(--color-bg);
    border: 0;
  }

  .site-menu:is(:popover-open, .\:popover-open) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.375rem;
  }

  .site-menu a {
    padding-block: 0.25rem;
    font-size: clamp(1.875rem, 1.4rem + 2.2vw, 2.75rem);
    line-height: 1.2;
  }

  /* The page behind the open menu does not scroll */
  html:has(.site-menu:is(:popover-open, .\:popover-open)) {
    overflow: hidden;
  }

  @media (prefers-reduced-motion: no-preference) {
    .site-menu {
      opacity: 0;
      transition:
        opacity 0.35s var(--ease-out),
        display 0.35s,
        overlay 0.35s;
      /* Separate from the shorthand, or older browsers drop the whole transition */
      transition-behavior: allow-discrete;
    }

    .site-menu:is(:popover-open, .\:popover-open) {
      opacity: 1;
    }

    .site-menu li {
      opacity: 0;
      translate: 0 0.5rem;
      transition:
        opacity 0.5s var(--ease-out),
        translate 0.5s var(--ease-out);
    }

    .site-menu:is(:popover-open, .\:popover-open) li {
      opacity: 1;
      translate: 0 0;
    }

    .site-menu li:nth-child(2) { transition-delay: 0.05s; }
    .site-menu li:nth-child(3) { transition-delay: 0.1s; }
    .site-menu li:nth-child(4) { transition-delay: 0.15s; }

    @starting-style {
      .site-menu:is(:popover-open, .\:popover-open) {
        opacity: 0;
      }

      .site-menu:is(:popover-open, .\:popover-open) li {
        opacity: 0;
        translate: 0 0.5rem;
      }
    }
  }
}

/* Wide screens: same list, shown inline. Undo the popover UA styles. */
@media (width >= 60rem) {
  .menu-button {
    display: none;
  }

  .site-menu {
    position: static;
    inset: auto;
    display: flex;
    gap: clamp(2rem, 0.5rem + 3.5vw, 5.5rem);
    inline-size: auto;
    block-size: auto;
    margin: 0;
    overflow: visible;
    color: inherit;
    background: none;
    border: 0;
  }

  .site-menu a {
    padding-block: 0.5rem;
    font-size: clamp(1rem, 0.9rem + 0.25vw, 1.1875rem);
    line-height: 1.3;
  }
}

/* Photography: carousel
   ========================================================================== */
.carousel {
  /* Left column holds the text, right one balances it: the image is truly centred */
  --side: clamp(12rem, 22vw, 26rem);
  --pad: clamp(1.5rem, 5dvh, 3.5rem);
  /* Tallest an image may be: the screen under the header, minus breathing room */
  --stage-h: max(18rem, 100svh - var(--header-h) - 2 * var(--pad));

  position: relative;
  block-size: calc(var(--stage-h) + 2 * var(--pad));
}

.carousel__track {
  /* offsetParent of the slides, so the script can read their positions */
  position: relative;
  display: flex;
  block-size: 100%;
  overflow-x: auto;
  /* Only the x axis: the page must still scroll vertically over the carousel */
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

.carousel__track:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: -1px;
}

@media (prefers-reduced-motion: no-preference) {
  .carousel__track {
    scroll-behavior: smooth;
  }
}

.slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  /* One project per swipe, even on a strong fling */
  scroll-snap-stop: always;
}

/* One link per slide. The link itself ignores the pointer, its children don't:
   only the text and the image are clickable, not the empty sides. */
.slide__link {
  display: grid;
  grid-template-columns: var(--side) minmax(0, 1fr) var(--side);
  align-items: center;
  block-size: 100%;
  padding-block: var(--pad);
  text-decoration: none;
  pointer-events: none;
}

.slide__link > * {
  pointer-events: auto;
}

.slide__link:focus-visible {
  outline: none;
}

.slide__text {
  grid-area: 1 / 1;
  justify-self: start;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  /* Clears the arrow, which sits on the page margin */
  padding-inline: clamp(3rem, 1.5rem + 3vw, 6rem) 1.5rem;
  font-size: 1rem;
  line-height: 1.4;
}

.slide__title {
  align-self: flex-start;
  font-size: var(--title-size);
  line-height: 1.2;
}

.slide__meta > span {
  display: block;
}

.slide__media {
  grid-area: 1 / 2;
  justify-self: center;
  display: block;
  /* Real proportions of the cover (--r, set by the script), never cropped:
     as tall as the stage allows, narrower if the centre column is narrower */
  inline-size: min(100%, var(--stage-h) * var(--r, 1.5));
  aspect-ratio: var(--r, 1.5);
  background: var(--color-placeholder) center / cover no-repeat;
}

.slide__link:focus-visible .slide__media {
  outline: 1px solid currentColor;
  outline-offset: 0.375rem;
}

.slide__media img,
.tile__media img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

/* Arrows over the track's edges; the strip between them stays swipeable.
   Pulled out by the button's own inset so the chevrons sit on the page margin. */
.carousel__controls {
  position: absolute;
  inset: 0 -0.75rem;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.carousel__button {
  display: grid;
  place-items: center;
  inline-size: 3rem;
  block-size: 3rem;
  padding: 0;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.carousel__button svg {
  inline-size: 1.75rem;
  block-size: 1.75rem;
  transition: translate 0.4s var(--ease-out);
}

.carousel__button:focus-visible {
  outline: 1px solid currentColor;
}

@media (hover: hover) {
  .carousel__button[data-direction="previous"]:hover svg {
    translate: -0.25rem 0;
  }

  .carousel__button[data-direction="next"]:hover svg {
    translate: 0.25rem 0;
  }
}

.carousel.is-single .carousel__controls {
  display: none;
}

.carousel__notice {
  margin: auto;
  color: var(--color-muted);
}

/* Phones: image on top, text under it, the next project peeking in */
@media (width < 48rem) {
  .carousel {
    --stage-h: 62svh;
    --pad: 1.25rem;

    block-size: auto;
    min-block-size: calc(var(--stage-h) + 2 * var(--pad));
  }

  .carousel__controls {
    display: none;
  }

  .carousel__track {
    gap: 0.75rem;
  }

  .slide {
    flex-basis: 86%;
  }

  .slide__link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.875rem;
    block-size: auto;
  }

  .slide__media {
    order: -1;
  }

  .slide__text {
    gap: 0.25rem;
    padding: 0;
  }
}

/* Photography: mosaic
   ========================================================================== */
.projects {
  padding-block: clamp(3rem, 7vw, 7rem) clamp(4rem, 10vw, 8rem);
}

.mosaic {
  --cols: 2;
  --gap: clamp(0.75rem, 0.5rem + 1vw, 1.5rem);
  /* Width of one column, read from the grid itself (cqi = 1% of .mosaic) */
  --col: calc((100cqi - (var(--cols) - 1) * var(--gap)) / var(--cols));

  container-type: inline-size;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  /* A landscape that doesn't fit at the end of a row leaves a hole: a later
     portrait fills it */
  grid-auto-flow: row dense;
  gap: var(--gap);
  padding: 0;
  list-style: none;
}

@media (width >= 40rem) {
  .mosaic {
    --cols: 3;
  }
}

@media (width >= 72rem) {
  .mosaic {
    --cols: 4;
  }
}

/* Two fixed formats. A portrait cover takes one column at 2:3; a landscape
   takes two columns at the same height, so every row lines up. */
.tile--h {
  grid-column: span 2;
}

.tile__link {
  position: relative;
  display: block;
  text-decoration: none;
}

.tile__link:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 0.25rem;
}

.tile__media {
  display: block;
  block-size: calc(var(--col) * 3 / 2);
  overflow: hidden;
  background: var(--color-placeholder) center / cover no-repeat;
}

.tile__title,
.tile__meta > span {
  display: block;
}

/* Touch screens have no hover: the text sits under the image */
.tile__caption {
  display: block;
  padding-block-start: 0.625rem;
  font-size: 1rem;
  line-height: 1.4;
}

.tile__meta {
  color: var(--color-muted);
}

@media (hover: none) {
  .tile__meta > span {
    display: inline;
  }

  .tile__meta > span + span::before {
    content: " · ";
    content: " · " / "";
  }
}

/* Mouse: black veil at 50% and centred text on hover (and on keyboard focus) */
@media (hover: hover) {
  .tile__link::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgb(0 0 0 / 0.5);
    opacity: 0;
    transition: opacity 0.5s var(--ease-out);
  }

  .tile__caption {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem;
    color: #ffffff;
    text-align: center;
    opacity: 0;
    transition:
      opacity 0.5s var(--ease-out),
      translate 0.5s var(--ease-out);
  }

  .tile__title {
    font-size: var(--title-size);
    line-height: 1.2;
  }

  .tile__meta {
    color: inherit;
  }

  .tile__link:is(:hover, :focus-visible)::after,
  .tile__link:is(:hover, :focus-visible) .tile__caption {
    opacity: 1;
  }

  @media (prefers-reduced-motion: no-preference) {
    .tile__caption {
      translate: 0 0.5rem;
    }

    .tile__link:is(:hover, :focus-visible) .tile__caption {
      translate: 0 0;
    }
  }
}

/* Contact
   ========================================================================== */
.contact {
  display: grid;
  gap: clamp(3rem, 8vw, 5rem);
  padding-block: clamp(2.5rem, 7vw, 7rem) clamp(4rem, 10vw, 8rem);
}

/* Wide screens: title and socials on the left, the form on the right */
@media (width >= 60rem) {
  .contact {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: clamp(4rem, 1rem + 7vw, 10rem);
    align-items: start;
  }
}

.contact__title {
  font-size: clamp(2.75rem, 1.75rem + 4vw, 6rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.01em;
}

/* Socials: name over handle, the same pairing as the project titles */
.social {
  display: grid;
  gap: 1.25rem;
  margin-top: clamp(2rem, 5vw, 4rem);
  padding: 0;
  list-style: none;
}

.social__link {
  display: inline-flex;
  flex-direction: column;
  gap: 0.125rem;
  text-decoration: none;
}

.social__link:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 0.375rem;
}

.social__name {
  align-self: flex-start;
  font-size: var(--title-size);
  line-height: 1.2;
}

.social__handle {
  font-size: 1rem;
  line-height: 1.4;
  color: var(--color-muted);
}

/* Form
   ========================================================================== */
.contact-form {
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.5rem);
  max-inline-size: 40rem;
}

/* Each field is a label over a hairline. On focus a darker line grows from
   the centre over it, the same gesture as the link underline. */
.field {
  position: relative;
  display: grid;
  gap: 0.25rem;
}

.field::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  block-size: 1.5px;
  background-color: currentColor;
  scale: 0 1;
  transition: scale 0.4s var(--ease-out);
  pointer-events: none;
}

.field:focus-within::after {
  scale: 1 1;
}

.field__label {
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.field__control {
  inline-size: 100%;
  margin: 0;
  /* Never under 16px, or iOS zooms in on focus */
  padding: 0.375rem 0 0.5rem;
  font: inherit;
  font-size: 1.25rem;
  line-height: 1.4;
  color: inherit;
  background: none;
  border: 0;
  /* Muted, not lighter: the line is the field's only edge, so it keeps 3:1 */
  border-bottom: 1px solid var(--color-muted);
  border-radius: 0;
  outline: none;
  appearance: none;
  caret-color: currentColor;
}

/* Grows with what is typed; older browsers keep the 5 rows and a handle */
.field__control--message {
  min-block-size: calc(5lh + 0.875rem);
  max-block-size: calc(16lh + 0.875rem);
  resize: vertical;
}

@supports (field-sizing: content) {
  .field__control--message {
    field-sizing: content;
    resize: none;
  }
}

/* Autofill paints its own background: cover it with ours */
.field__control:autofill {
  -webkit-text-fill-color: var(--color-ink);
  box-shadow: 0 0 0 100vmax var(--color-bg) inset;
}

/* Errors only after the visitor has left the field, never on an empty form */
.field:has(.field__control:user-invalid) {
  color: var(--color-error);
}

.field__control:user-invalid {
  border-bottom-color: currentColor;
}

.field:has(.field__control:user-invalid) .field__label {
  color: inherit;
}

.contact-form__footer {
  display: grid;
  justify-items: start;
  gap: 1rem;
  padding-top: 0.5rem;
}

/* Text and arrow, like the carousel buttons: the arrow nudges forward on hover */
.contact-form__submit {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0.5rem 0;
  font: inherit;
  font-size: var(--title-size);
  line-height: 1.2;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.contact-form__submit svg {
  inline-size: 1.5rem;
  block-size: 1.5rem;
  transition: translate 0.4s var(--ease-out);
}

@media (hover: hover) {
  .contact-form__submit:hover svg {
    translate: 0.25rem 0;
  }
}

.contact-form__submit:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 0.25rem;
}

.contact-form__submit[aria-disabled="true"] {
  cursor: progress;
  opacity: 0.5;
}

.contact-form__status {
  font-size: 1.0625rem;
  line-height: 1.4;
}

.contact-form__status:empty {
  display: none;
}

.contact-form[data-state="error"] .contact-form__status {
  color: var(--color-error);
}
