
:root {
  --paper: #d2b98b;
  --paper-light: #ead8ad;
  --paper-panel: rgba(232, 209, 166, .76);
  --ink: #2f2115;
  --ink-soft: #624a2f;
  --line: #3a2a19;
  --red: #85362d;
  --green: #31513c;
  --blue: #274e6a;
  --yellow: #b47a1d;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: "Palatino Linotype", Palatino, "Book Antiqua", Garamond, Georgia, serif;
  background-color: var(--paper);
  background-image: url("site-bg.png");
  background-repeat: repeat;
  background-size: auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: .35;
  mix-blend-mode: multiply;
  background:
    radial-gradient(circle at center, transparent 42%, rgba(39, 25, 12, .18)),
    linear-gradient(rgba(255,255,255,.035) 50%, rgba(0,0,0,.025) 50%);
  background-size: 100% 100%, 100% 4px;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site {
  width: min(1180px, calc(100% - 24px));
  margin: 18px auto 42px;
  border: 3px double var(--line);
  background: rgba(234, 216, 173, .72);
  box-shadow: 0 0 0 3px rgba(58,42,25,.12), 12px 14px 0 rgba(58,42,25,.13);
}

.top {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 20px 26px;
  border-bottom: 3px double var(--line);
  background: rgba(226, 201, 157, .62);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(58,42,25,.5);
  display: grid;
  place-items: center;
  font-size: 34px;
  color: var(--red);
  background: rgba(234, 216, 173, .58);
}

.brand-title {
  font-size: 34px;
  line-height: 1;
  letter-spacing: .18em;
  font-weight: normal;
}

.brand-sub {
  margin-top: 5px;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 20px;
  font-size: 16px;
}

.nav a {
  border-bottom: 1px dotted rgba(58,42,25,.55);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 34px;
  padding: 34px;
  border-bottom: 3px double var(--line);
}

.hero-copy {
  min-height: 610px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
  border: 2px solid rgba(58,42,25,.48);
  background:
    linear-gradient(rgba(232,209,166,.68), rgba(232,209,166,.68)),
    radial-gradient(circle at 70% 10%, rgba(255,244,201,.35), transparent 32%);
}

.kicker {
  margin-bottom: 20px;
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero h1 {
  margin: 0;
  font-size: clamp(56px, 8vw, 104px);
  line-height: .92;
  letter-spacing: .10em;
  font-weight: normal;
  text-shadow: 1px 1px 0 rgba(255,242,204,.5), 2px 2px 0 rgba(58,42,25,.13);
}

.hero-sub {
  margin-top: 14px;
  font-size: 17px;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.rule {
  width: min(440px, 100%);
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0;
}

.rule::before,
.rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(58,42,25,.48);
}

.rule span {
  color: var(--red);
}

.hero-text {
  font-size: 20px;
  line-height: 1.65;
}

.hero-text p {
  margin: 0 0 12px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-block;
  border: 2px outset #7a623c;
  background: #d1bf96;
  padding: 8px 14px;
  font-size: 15px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.button:active {
  border-style: inset;
}

.art-card {
  border: 3px double var(--line);
  background: rgba(232,209,166,.58);
  padding: 10px;
  align-self: center;
  box-shadow: inset 0 0 20px rgba(58,42,25,.13);
}

.art-card img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(58,42,25,.55);
}

.art-caption {
  margin-top: 9px;
  text-align: center;
  font-size: 13px;
  letter-spacing: .09em;
  color: var(--ink-soft);
}

.six {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 3px double var(--line);
}

.six-card {
  min-height: 162px;
  padding: 24px;
  border-right: 1px dotted rgba(58,42,25,.5);
  border-bottom: 1px dotted rgba(58,42,25,.28);
  background: rgba(234,216,173,.38);
}

.six-card:nth-child(3n) {
  border-right: none;
}

.six-card .num {
  display: inline-block;
  margin-bottom: 9px;
  padding: 2px 7px;
  background: var(--red);
  color: #f3e4c4;
  font-size: 12px;
  letter-spacing: .16em;
}

.six-card h3 {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.six-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15.5px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 22px;
  padding: 28px;
}

.panel {
  border: 3px double rgba(58,42,25,.66);
  background: var(--paper-panel);
}

.panel h2 {
  margin: 0;
  padding: 10px 15px;
  background: rgba(92,69,44,.94);
  color: #f3e4c4;
  font-size: 22px;
  font-weight: normal;
  border-bottom: 1px solid var(--line);
}

.panel-body {
  padding: 18px;
  font-size: 18px;
  line-height: 1.62;
}

.panel-body p:first-child {
  margin-top: 0;
}

.link-list {
  margin: 0;
  padding-left: 20px;
}

.link-list li {
  margin-bottom: 8px;
}

.footer {
  border-top: 3px double var(--line);
  padding: 18px 24px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 15px;
}

.page-content {
  padding: 34px;
  max-width: 980px;
}

.postulates {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.postulate {
  border: 2px ridge #7a623c;
  background: rgba(244,231,201,.72);
  padding: 13px;
}

.postulate h3 {
  margin: 0 0 7px;
  font-size: 21px;
  font-weight: normal;
}

.postulate p {
  margin: 0;
  font-size: 15.5px;
}

.numbers-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(244,231,201,.72);
}

.numbers-table th,
.numbers-table td {
  border: 1px solid rgba(58,42,25,.45);
  padding: 12px;
  vertical-align: top;
}

.numbers-table th {
  width: 130px;
  font-size: 44px;
  font-weight: normal;
  color: var(--red);
}

.guestbook textarea {
  width: 100%;
  min-height: 105px;
  border: 2px inset #7a623c;
  background: #fff1cf;
  color: var(--ink);
  font-family: "Palatino Linotype", Palatino, "Book Antiqua", Garamond, Georgia, serif;
  padding: 10px;
}

button {
  margin-top: 10px;
  border: 2px outset #7a623c;
  background: #d1bf96;
  color: var(--ink);
  padding: 7px 12px;
  font-family: "Palatino Linotype", Palatino, "Book Antiqua", Garamond, Georgia, serif;
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
}

button:active { border-style: inset; }

.entries {
  margin-top: 12px;
  font-size: 14px;
}

.entry {
  border-top: 1px dotted var(--line);
  padding-top: 8px;
  margin-top: 8px;
}

@media (max-width: 980px) {
  .top {
    grid-template-columns: 1fr;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: auto;
  }

  .art-card {
    max-width: 520px;
    margin: 0 auto;
  }

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

@media (max-width: 640px) {
  .site {
    width: calc(100% - 10px);
    margin: 5px auto;
  }

  .top,
  .hero,
  .page-content {
    padding: 18px;
  }

  .brand-title {
    font-size: 28px;
  }

  .hero-copy {
    padding: 20px;
  }

  .hero h1 {
    font-size: 46px;
  }

  .hero-text,
  .panel-body {
    font-size: 16px;
  }

  .six,
  .content-grid,
  .postulates {
    grid-template-columns: 1fr;
  }

  .six-card,
  .six-card:nth-child(3n) {
    border-right: none;
  }
}
