@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

:root {
  --ink: #000;
  --white: #fff;
  --off-white: #f5f4f1;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--white); font: 1rem/1.6 Nunito, system-ui, sans-serif; }
h1, h2, p { margin: 0; }
a { color: inherit; }
.wrap { width: min(calc(100% - 3rem), 70rem); margin-inline: auto; }
.top, .footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem 2rem; padding-block: 1.25rem; }
.top { border-bottom: 1px solid var(--off-white); }
.brand { font-size: 1.45rem; font-weight: 800; letter-spacing: -.055em; text-decoration: none; }
.brand span, .text-link { color: var(--ink); }
nav { display: flex; flex-wrap: wrap; gap: .35rem 1.35rem; }
nav a { text-decoration: none; font-weight: 600; }
nav a:hover, nav a[aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: .32em; }
main { min-height: 62vh; padding-block: clamp(1.5rem, 4vw, 3.25rem); }
h1 { font-size: clamp(2.65rem, 7vw, 5.75rem); font-weight: 790; letter-spacing: -.065em; line-height: 1.03; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.85rem; padding: .6rem 1.1rem; background: var(--off-white); color: var(--ink); text-decoration: none; border: 1px solid var(--ink); border-radius: 100px; font: inherit; font-weight: 800; cursor: pointer; }
.button:hover { background: var(--white); }
.text-link { font-weight: 700; text-underline-offset: .2em; }
.page-head { margin-bottom: 2rem; }
.page-head h1 { font-size: clamp(2.65rem, 5.5vw, 4.65rem); }
.page-head p { font-size: clamp(1.06rem, 2vw, 1.25rem); max-width: 47ch; margin-top: 1.2rem; }
.page-head p, .rows p, .inset p, details p, .footer { color: var(--ink); }
.rows, details, .inset { max-width: 54rem; }
.rows { border-top: 1px solid var(--off-white); margin-bottom: 1.2rem; }
.rows section { display: grid; grid-template-columns: minmax(11rem, 1fr) minmax(0, 1.65fr); gap: .45rem 2rem; padding-block: 1.2rem; border-bottom: 1px solid var(--off-white); }
h2 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -.025em; }
h2 span { display: block; color: var(--ink); font-size: 1rem; letter-spacing: 0; margin-top: .2rem; }
.rows .text-link { display: inline-block; margin-top: .35rem; }
.inset { padding: 1.3rem; background: var(--off-white); border-radius: 1.25rem; }
.inset p { margin-top: .55rem; }
details { border-bottom: 1px solid var(--off-white); }
summary { padding-block: .8rem; cursor: pointer; font-weight: 700; }
details p, dl { margin: 0 0 1rem; }
dl div { display: flex; justify-content: space-between; gap: 1rem; padding-block: .25rem; }
dd { margin: 0; font-weight: 700; white-space: nowrap; }
.next { margin-top: 1.2rem; }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
form, label { display: grid; gap: .5rem; }
form { gap: 1rem; }
label { font-weight: 650; }
input, select, textarea { width: 100%; min-width: 0; min-height: 2.7rem; border: 1px solid var(--ink); border-radius: .25rem; padding: .55rem .65rem; background: var(--white); color: var(--ink); font: inherit; }
select { appearance: none; padding-right: 2rem; background: linear-gradient(45deg,transparent 50%,var(--ink) 50%) calc(100% - 17px) 50%/6px 6px no-repeat,linear-gradient(135deg,var(--ink) 50%,transparent 50%) calc(100% - 11px) 50%/6px 6px no-repeat; }
textarea { resize: vertical; }
form .button { justify-self: start; }
#inquiry-status { color: var(--ink); }
.footer { border-top: 1px solid var(--off-white); }
.footer .brand { color: var(--ink); }
.skip { position: absolute; top: 0; left: .5rem; transform: translateY(-110%); background: var(--white); padding: .6rem; }
.skip:focus { transform: none; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.button:focus-visible { outline-color: var(--ink); }
@media (max-width: 640px) {
  .wrap { width: calc(100% - 2rem); }
  .top nav { width: 100%; gap: .35rem .85rem; }
  .contact, .rows section { grid-template-columns: 1fr; }
  .contact { gap: 0; }
}
.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 8vw, 7rem);
  padding-block: clamp(1rem, 5vw, 4rem);
}
.home-intro h1 { max-width: 12ch; font-weight: 900; }
.home-intro h1 em { color: var(--ink); font-style: normal; }
.home-intro p { max-width: 33ch; color: var(--ink); font-size: 1.2rem; margin-block: 1.25rem 1.6rem; }
.home-directory { display: grid; gap: .8rem; }
.home-directory a {
  display: grid;
  gap: .15rem;
  align-items: center;
  padding: .85rem 1.05rem;
  color: var(--ink);
  background: var(--off-white);
  border-radius: 1.25rem;
  text-decoration: none;
}
.home-directory strong { font-size: 1.3rem; font-weight: 900; letter-spacing: -.02em; }
.home-directory span { color: var(--ink); }
.home-directory a:hover strong { text-decoration: underline; text-underline-offset: .2em; }
.interior { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.35fr); align-items: start; gap: clamp(1.5rem, 5vw, 4rem); }
.interior .page-head h1 { font-size: clamp(2.5rem, 4.5vw, 4.25rem); }
.interior .page-head { margin-bottom: 0; }
.interior .rows section { grid-template-columns: minmax(7rem, 1fr) minmax(0, 1.6fr); gap: .45rem 1rem; }
@media (max-width: 720px) {
  .home-layout, .interior { grid-template-columns: minmax(0, 1fr); }
  .home-intro h1 { max-width: 13ch; }
}
@media (max-width: 430px) {
  .interior .rows section { grid-template-columns: minmax(0, 1fr); }
}
.rows ul { margin: 0; padding-inline-start: 1.2rem; color: var(--ink); }
.rows p + ul { margin-top: .5rem; }
.rows li + li { margin-top: .2rem; }

@media (prefers-reduced-motion: no-preference) {
  .home-intro,
  .home-directory a {
    animation: home-reveal 620ms cubic-bezier(.22, 1, .36, 1) backwards;
  }
  .home-directory a:nth-child(1) { animation-delay: 90ms; }
  .home-directory a:nth-child(2) { animation-delay: 170ms; }
  .home-directory a:nth-child(3) { animation-delay: 250ms; }
  .home-intro:focus-within,
  .home-directory a:focus-visible { animation: none; }
}

@keyframes home-reveal {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.home-main { position: relative; isolation: isolate; }
.home-main .home-layout { position: relative; z-index: 1; padding-inline: clamp(1rem, 4vw, 3rem); }
.home-background {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 1rem;
  background: #faf9f6;
  pointer-events: none;
}
.home-background::before,
.home-background::after {
  content: "";
  position: absolute;
  border-radius: 48% 52% 55% 45%;
  pointer-events: none;
}
.home-background::before {
  top: 7%;
  left: 18%;
  width: clamp(13rem, 31vw, 25rem);
  aspect-ratio: 1.4;
  background: #dfdbd1;
  animation: background-glide 13s ease-in-out infinite alternate paused;
}
.home-background::after {
  right: 7%;
  bottom: 2%;
  width: clamp(14rem, 35vw, 28rem);
  aspect-ratio: 1.5;
  background: #ece7dc;
  animation: background-glide 17s ease-in-out infinite alternate-reverse paused;
}
.home-main .home-directory a { background: #f5f4f1; border: 1px solid #d4d1c9; }
@media (prefers-reduced-motion: no-preference) {
  .home-background::before,
  .home-background::after { animation-play-state: running; }
}
@keyframes background-glide {
  from { transform: translate(-20%, 0) rotate(-14deg); }
  to { transform: translate(38%, 18%) rotate(15deg); }
}

.contact [hidden] { display: none; }
@media (max-width: 640px) {
  .contact .inset { margin-bottom: 1.5rem; }
}
