/* Bel Ricordo: one stylesheet for every page. Mobile first; no JavaScript. */

@font-face {
  font-family: "Playfair Display";
  src: url("/fonts/PlayfairDisplay-Variable.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #f7f1e8;
  --paper: #fffaf3;
  --ink: #26221e;
  --ink-soft: #5a524a;
  --accent: #b07a5c;
  --accent-dark: #8a5a3f; /* accent shade with enough contrast for link text on cream */
  --line: #e3d6c5;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 68rem;
  --text: 40rem;
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}

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

a {
  color: var(--accent-dark);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2rem, 6vw, 3rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-top: 1.6em;
}

h3 {
  font-size: 1.25rem;
  margin-top: 1.4em;
}

p,
ul,
ol {
  margin: 0 0 1em;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 0.5rem 1rem;
  z-index: 10;
}

.skip:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.prose {
  max-width: var(--text);
}

/* header */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.35rem 0;
  display: inline-block;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}

/* buttons */

.button {
  display: inline-block;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
}

.button:hover {
  background: var(--accent-dark);
  color: var(--paper);
}

.button.quiet {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.button.quiet:hover {
  background: var(--ink);
  color: var(--cream);
}

/* sections */

main {
  padding-bottom: 3rem;
}

.hero {
  padding: 2.5rem 0 1.5rem;
}

.hero .lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 36rem;
}

.hero-banner {
  margin: 1.5rem 0 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
}

.page-head {
  padding: 2.5rem 0 0.5rem;
}

.eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 0.4rem;
}

.rule {
  width: 6rem;
  height: 1px;
  background: var(--accent);
  border: 0;
  margin: 1.25rem 0;
}

/* steps */

.steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

.steps li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1rem 1.1rem 1rem 3.4rem;
  position: relative;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 0.9rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--accent-dark);
  color: var(--paper);
  font-family: var(--serif);
  font-weight: 600;
  text-align: center;
  line-height: 1.7rem;
}

.steps strong {
  display: block;
}

/* cards */

.cards {
  display: grid;
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.1rem 1.2rem;
}

.card h3 {
  margin-top: 0;
}

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

.style-card {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.style-card img {
  border-radius: 4px;
  border: 1px solid var(--line);
  max-width: 180px;
}

.tag {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.05rem 0.6rem;
  margin: 0 0.3rem 0.3rem 0;
}

/* prices */

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.price-table caption {
  text-align: left;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  padding: 0 0 0.5rem;
}

.price-table th,
.price-table td {
  padding: 0.7rem 0.9rem;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.price-table thead th {
  border-top: 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.price-table td.price {
  white-space: nowrap;
  font-weight: 600;
  text-align: right;
}

.price-table thead th:last-child {
  text-align: right;
}

.small {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* disclosure box */

.note {
  background: var(--paper);
  border-left: 4px solid var(--accent);
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
  border-radius: 0 6px 6px 0;
}

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

/* faq */

.faq dt {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  margin-top: 1.6rem;
}

.faq dd {
  margin: 0.4rem 0 0;
}

/* guides list */

.guide-list a {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
}

/* footer */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
  font-size: 0.95rem;
  padding: 2rem 0;
}

.site-footer .cols {
  display: grid;
  gap: 1.5rem;
}

.site-footer h2 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}

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

.site-footer li {
  margin: 0.2rem 0;
}

.site-footer .legal {
  margin-top: 1.5rem;
  color: var(--ink-soft);
}

/* wider screens */

@media (min-width: 40rem) {
  .cards.two {
    grid-template-columns: repeat(2, 1fr);
  }

  .style-card {
    grid-template-columns: 180px 1fr;
  }

  .site-footer .cols {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

@media (min-width: 60rem) {
  .cards.three {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
