@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Lato:ital,wght@0,300;0,400;0,700;1,400;1,700&display=swap');

:root {
  --color-sky-blue: #87CEEB;
  --color-soft-brick: #C87D5B;
  --color-butter: #F5E6C8;
  --color-forest-green: #2E4A2E;
  --color-ivory: #FFFFF0;
  --color-charcoal: #333333;
  --color-white: #FFFFFF;
  --color-forest-green-20: rgba(46, 74, 46, 0.2);
  --color-forest-green-10: rgba(46, 74, 46, 0.1);
  --color-shadow: rgba(0, 0, 0, 0.1);
  --color-shadow-hover: rgba(0, 0, 0, 0.16);

  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Lato', 'Helvetica Neue', Arial, sans-serif;

  --text-display-desktop: 3.5rem;
  --text-display-mobile: 2.5rem;
  --text-h1-desktop: 2.5rem;
  --text-h1-mobile: 2rem;
  --text-h2-desktop: 2rem;
  --text-h2-mobile: 1.75rem;
  --text-h3-desktop: 1.5rem;
  --text-h3-mobile: 1.25rem;
  --text-body: 1rem;
  --text-small: 0.875rem;

  --leading-heading: 1.25;
  --leading-body: 1.6;
  --leading-small: 1.5;

  --tracking-heading: 0.02em;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3rem;
  --space-xl: 5rem;

  --container-max: 1200px;
  --container-padding: var(--space-md);

  --radius-button: 4px;
  --radius-card: 12px;
  --radius-image: 12px;

  --border-thin: 1px solid var(--color-forest-green-20);
  --shadow-card: 0 2px 8px var(--color-shadow);
  --shadow-card-hover: 0 6px 18px var(--color-shadow-hover);
  --shadow-focus: 0 0 0 3px var(--color-sky-blue);

  --transition-base: 0.3s ease-in-out;
  --transition-transform: 0.3s ease-in-out;
}

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

html {
  font-size: 100%;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-charcoal);
  background-color: var(--color-ivory);
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

a {
  color: var(--color-forest-green);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-soft-brick);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: var(--radius-button);
}

ul,
ol {
  list-style-position: inside;
  margin-block-end: var(--space-sm);
}

blockquote {
  margin-block-end: var(--space-sm);
  padding-inline-start: var(--space-sm);
  border-inline-start: 3px solid var(--color-soft-brick);
  font-style: italic;
}

figure {
  margin-block-end: var(--space-sm);
}

figcaption {
  font-size: var(--text-small);
  color: var(--color-charcoal);
  margin-block-start: var(--space-xs);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-block-end: var(--space-sm);
}

th,
td {
  padding: var(--space-xs) var(--space-sm);
  text-align: start;
  border-block-end: var(--border-thin);
}

th {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-forest-green);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-heading);
  color: var(--color-forest-green);
  margin-block-end: var(--space-sm);
}

h1 {
  font-size: var(--text-h1-mobile);
  margin-block-end: var(--space-md);
}

h2 {
  font-size: var(--text-h2-mobile);
  margin-block-end: var(--space-sm);
}

h3 {
  font-size: var(--text-h3-mobile);
  margin-block-end: var(--space-xs);
}

h4 {
  font-size: var(--text-body);
  font-weight: 700;
  margin-block-end: var(--space-xs);
}

h5,
h6 {
  font-size: var(--text-small);
  font-weight: 700;
  margin-block-end: var(--space-xs);
}

p {
  margin-block-end: var(--space-sm);
  line-height: var(--leading-body);
}

small {
  font-size: var(--text-small);
  line-height: var(--leading-small);
}

strong {
  font-weight: 700;
}

em {
  font-style: italic;
}

hr {
  border: none;
  border-block-start: var(--border-thin);
  margin-block: var(--space-md);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.section {
  padding-block: var(--space-lg);
}

.section--tight {
  padding-block: var(--space-md);
}

.section--roomy {
  padding-block: var(--space-xl);
}

.surface-ivory {
  background-color: var(--color-ivory);
}

.surface-butter {
  background-color: var(--color-butter);
}

.surface-forest {
  background-color: var(--color-forest-green);
  color: var(--color-white);
}

.surface-brick {
  background-color: var(--color-soft-brick);
  color: var(--color-white);
}

.surface-forest h1,
.surface-forest h2,
.surface-forest h3,
.surface-forest h4,
.surface-forest h5,
.surface-forest h6,
.surface-brick h1,
.surface-brick h2,
.surface-brick h3,
.surface-brick h4,
.surface-brick h5,
.surface-brick h6 {
  color: var(--color-white);
}

.surface-forest a,
.surface-brick a {
  color: var(--color-sky-blue);
}

.surface-forest a:hover,
.surface-brick a:hover {
  color: var(--color-butter);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.75rem 1.5rem;
  min-height: 44px;
  min-width: 44px;
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border-radius: var(--radius-button);
  background-color: var(--color-forest-green);
  color: var(--color-white);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color var(--transition-base), color var(--transition-base), border-color var(--transition-base), transform var(--transition-transform);
}

.btn:hover {
  background-color: var(--color-soft-brick);
  color: var(--color-white);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-forest-green);
  border-color: var(--color-forest-green);
}

.btn--secondary:hover {
  background-color: var(--color-forest-green);
  color: var(--color-white);
  border-color: var(--color-forest-green);
}

.btn--brick {
  background-color: var(--color-soft-brick);
  color: var(--color-white);
}

.btn--brick:hover {
  background-color: var(--color-forest-green);
  color: var(--color-white);
}

.btn--light {
  background-color: var(--color-white);
  color: var(--color-forest-green);
}

.btn--light:hover {
  background-color: var(--color-butter);
  color: var(--color-forest-green);
}

.btn--small {
  padding: 0.5rem 1rem;
  min-height: 36px;
  font-size: var(--text-small);
}

.btn--large {
  padding: 1rem 2rem;
  min-height: 52px;
  font-size: 1.125rem;
}

.card {
  background-color: var(--color-butter);
  border: var(--border-thin);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--space-md);
  transition: box-shadow var(--transition-base), transform var(--transition-transform);
}

.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: scale(1.02);
}

.card > :last-child {
  margin-block-end: 0;
}

.arch-frame {
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  overflow: hidden;
}

.arch-frame--full {
  border-radius: var(--radius-card);
}

.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;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  z-index: 1000;
  padding: var(--space-xs) var(--space-sm);
  background-color: var(--color-forest-green);
  color: var(--color-white);
  border-radius: var(--radius-button);
  text-decoration: none;
  transition: top var(--transition-base);
}

.skip-link:focus {
  top: var(--space-sm);
  color: var(--color-white);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="time"],
textarea,
select {
  display: block;
  width: 100%;
  padding: 0.75rem 0.5rem;
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-charcoal);
  background-color: var(--color-white);
  border: none;
  border-block-end: 2px solid var(--color-forest-green-20);
  border-radius: 0;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  min-height: 44px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-block-end-color: var(--color-sky-blue);
  box-shadow: 0 2px 0 0 var(--color-sky-blue);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%232E4A2E' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-inline-end: 2rem;
}

label {
  display: block;
  font-weight: 700;
  color: var(--color-forest-green);
  margin-block-end: var(--space-xs);
}

fieldset {
  border: var(--border-thin);
  border-radius: var(--radius-button);
  padding: var(--space-sm);
  margin-block-end: var(--space-sm);
}

legend {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-forest-green);
  padding-inline: var(--space-xs);
}

.form-group {
  margin-block-end: var(--space-sm);
}

.form-group > :last-child {
  margin-block-end: 0;
}

.content-list {
  list-style: none;
  padding-inline-start: 0;
  margin-block-end: var(--space-sm);
}

.content-list li {
  margin-block-end: var(--space-xs);
  padding-inline-start: 1.5rem;
  position: relative;
}

.content-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-soft-brick);
}

.content-list li:last-child {
  margin-block-end: 0;
}

.flex {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.flex > * {
  min-width: 0;
}

.flex--nowrap {
  flex-wrap: nowrap;
}

.flex--center {
  align-items: center;
}

.flex--between {
  justify-content: space-between;
}

.flex--end {
  justify-content: flex-end;
}

.flex--column {
  flex-direction: column;
}

.flex--column-reverse {
  flex-direction: column-reverse;
}

.flex--gap-xs {
  gap: var(--space-xs);
}

.flex--gap-sm {
  gap: var(--space-sm);
}

.flex--gap-md {
  gap: var(--space-md);
}

.flex--gap-lg {
  gap: var(--space-lg);
}

.flex--gap-xl {
  gap: var(--space-xl);
}

.flex--grow > * {
  flex: 1 1 0;
}

.flex--auto > * {
  flex: 0 1 auto;
}

.flex--full > * {
  flex: 1 1 100%;
}

.flex--half > * {
  flex: 1 1 calc(50% - var(--space-sm));
}

.flex--third > * {
  flex: 1 1 calc(33.333% - var(--space-sm));
}

.flex--quarter > * {
  flex: 1 1 calc(25% - var(--space-sm));
}

.text-center {
  text-align: center;
}

.text-start {
  text-align: start;
}

.text-end {
  text-align: end;
}

.text-forest {
  color: var(--color-forest-green);
}

.text-charcoal {
  color: var(--color-charcoal);
}

.text-brick {
  color: var(--color-soft-brick);
}

.text-white {
  color: var(--color-white);
}

.text-butter {
  color: var(--color-butter);
}

.text-sky {
  color: var(--color-sky-blue);
}

.text-small {
  font-size: var(--text-small);
  line-height: var(--leading-small);
}

.text-display {
  font-family: var(--font-heading);
  font-size: var(--text-display-mobile);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-heading);
  font-weight: 700;
  color: var(--color-forest-green);
  margin-block-end: var(--space-sm);
}

.mt-xs { margin-block-start: var(--space-xs); }
.mt-sm { margin-block-start: var(--space-sm); }
.mt-md { margin-block-start: var(--space-md); }
.mt-lg { margin-block-start: var(--space-lg); }
.mt-xl { margin-block-start: var(--space-xl); }
.mb-xs { margin-block-end: var(--space-xs); }
.mb-sm { margin-block-end: var(--space-sm); }
.mb-md { margin-block-end: var(--space-md); }
.mb-lg { margin-block-end: var(--space-lg); }
.mb-xl { margin-block-end: var(--space-xl); }
.mx-auto { margin-inline: auto; }

@media (min-width: 768px) {
  :root {
    --container-padding: var(--space-md);
  }

  h1 {
    font-size: var(--text-h1-desktop);
  }

  h2 {
    font-size: var(--text-h2-desktop);
  }

  h3 {
    font-size: var(--text-h3-desktop);
  }

  .text-display {
    font-size: var(--text-display-desktop);
  }

  .section {
    padding-block: var(--space-xl);
  }

  .section--tight {
    padding-block: var(--space-lg);
  }

  .section--roomy {
    padding-block: calc(var(--space-xl) * 1.5);
  }

  .flex--half > * {
    flex: 1 1 calc(50% - var(--space-md));
  }

  .flex--third > * {
    flex: 1 1 calc(33.333% - var(--space-md));
  }

  .flex--quarter > * {
    flex: 1 1 calc(25% - var(--space-md));
  }
}

@media (min-width: 1024px) {
  :root {
    --container-padding: var(--space-lg);
  }

  .flex--half > * {
    flex: 1 1 calc(50% - var(--space-md));
  }

  .flex--third > * {
    flex: 1 1 calc(33.333% - var(--space-md));
  }

  .flex--quarter > * {
    flex: 1 1 calc(25% - var(--space-md));
  }
}