/* whiteningchoice.com subpages: Calm arches */
:root {
  --forest: #123524;
  --forest-tint: #234a37;
  --pistachio: #dce8b8;
  --pistachio-soft: #eef3dc;
  --lilac: #cdbdf2;
  --lilac-soft: #ece6fa;
  --pearl: #fcfcf7;
  --line: rgba(18, 53, 36, .2);
  --arch: 999px 999px 0 0;
  --display: "Yeseva One", Georgia, "Times New Roman", serif;
  --body: "Ysabeau Office", "Segoe UI", Helvetica, Arial, sans-serif;
  --gutter: clamp(20px, 3.4vw, 48px);
  --edge: max(var(--gutter), calc((100vw - 1200px) / 2 + var(--gutter)));
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--pearl);
  color: var(--forest);
  font: 400 19px/1.62 var(--body);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3, p, dl, dd, form { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 400; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; }

.wrap { width: min(1200px, 100%); margin-inline: auto; padding-inline: var(--gutter); }

.header-inner { padding-block: 24px; }
.logo-link { display: inline-block; max-width: 100%; }
.logo-link img { height: 52px; width: auto; object-fit: contain; object-position: left center; }

/* hero: forest field with a pair of arched windows standing on its lower edge */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--forest);
  color: var(--pearl);
}
.page-hero::before, .page-hero::after {
  content: "";
  position: absolute; bottom: 0;
  border-radius: var(--arch);
}
.page-hero::after {
  right: var(--edge);
  width: clamp(150px, 19vw, 260px);
  height: 82%;
  background: var(--pistachio);
}
.page-hero::before {
  right: calc(var(--edge) + clamp(150px, 19vw, 260px) + 20px);
  width: clamp(70px, 9vw, 124px);
  height: 52%;
  background: var(--lilac);
}
.page-hero .wrap { position: relative; z-index: 1; padding-block: clamp(64px, 8vw, 112px); }
.eyebrow { font-size: 19px; font-weight: 500; color: var(--pistachio); margin-bottom: 16px; }
.content-main .eyebrow { color: var(--forest); }
.page-hero h1 {
  font-size: clamp(1.75rem, 3vw, 2.625rem);
  line-height: 1.06;
  max-width: 56%;
}
.hero-copy { margin-top: 24px; max-width: 54%; font-size: 21px; line-height: 1.5; }

/* body: rail on the left, reading column on the right */
.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: clamp(48px, 7vw, 104px);
  align-items: start;
  padding-block: clamp(56px, 7vw, 96px);
}
.content-main { grid-column: 2; grid-row: 1; min-width: 0; }
.side-panel { grid-column: 1; grid-row: 1; min-width: 0; }

.section { padding-block: 36px; border-top: 1px solid var(--line); max-width: 700px; }
.section:first-child { border-top: 0; padding-top: 0; }
.section h2, .contact-panel h2 { font-size: clamp(28px, 3vw, 36px); line-height: 1.15; margin-bottom: 14px; }
.section h3, .contact-panel h3 { font: 700 22px/1.3 var(--body); margin: 18px 0 8px; }
.section p + p { margin-top: 1em; }

.side-panel, .contact-panel:first-child {
  background: var(--lilac-soft);
  border-radius: var(--arch);
  padding: 116px clamp(24px, 3vw, 36px) 36px;
}
.side-panel h2 { font-size: 30px; line-height: 1.15; text-align: center; margin-bottom: 24px; }
.detail-list > div { padding-block: 13px; border-top: 1px solid var(--line); }
dt { font-weight: 700; font-size: 18px; line-height: 1.35; }
dd { font-size: 18px; line-height: 1.45; overflow-wrap: anywhere; }
.notice { margin-top: 24px; padding: 20px 22px; background: var(--pistachio); font-size: 18px; line-height: 1.5; }

/* contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
  padding-block: clamp(56px, 7vw, 96px);
}
.contact-panel { min-width: 0; }
.contact-panel:first-child h2 { text-align: center; }
.contact-panel form {
  display: flex; flex-direction: column;
  margin-top: 32px; padding: clamp(24px, 3.4vw, 40px);
  background: var(--pistachio-soft);
}
label { font-weight: 700; font-size: 18px; margin: 14px 0 6px; }
label:first-child { margin-top: 0; }
input, textarea {
  width: 100%;
  border: 1px solid var(--forest);
  background: var(--pearl);
  color: var(--forest);
  font: 400 18px/1.4 var(--body);
  padding: 11px 20px;
  min-height: 48px;
  border-radius: 24px;
}
button {
  align-self: flex-start;
  margin-top: 24px;
  min-height: 52px; padding: 12px 36px;
  border: 0; border-radius: 999px;
  background: var(--forest); color: var(--pearl);
  font: 700 19px/1.2 var(--body);
  cursor: pointer;
}
button:hover { background: var(--forest-tint); }

/* footer */
.site-footer { background: var(--pistachio); padding-block: clamp(48px, 6vw, 72px); }
.footer-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 4px 32px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.footer-nav a { display: block; padding: 6px 0; font-size: 19px; min-height: 44px; }
.footer-note { font-size: 18px; line-height: 1.5; overflow-wrap: anywhere; }
.footer-note + .footer-note { margin-top: 10px; }

@media (max-width: 820px) {
  .content-layout, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .content-main, .side-panel { grid-column: 1; grid-row: auto; }
  .section { max-width: none; }
  .page-hero .wrap { padding-block: 56px 176px; }
  .page-hero h1, .hero-copy { max-width: none; }
  .page-hero::after { width: 120px; height: 140px; }
  .page-hero::before { width: 64px; height: 88px; right: calc(var(--edge) + 136px); }
  .side-panel, .contact-panel:first-child { padding-top: 104px; }
  input, textarea { font-size: 16px; }
  button { width: 100%; align-self: stretch; }
}
