/* Tincture & Trade, LLC
   Visual idea: an 18th-century merchant's trade card. Lampblack ground,
   gilt double rule, Fell types for the headings and Caslon for reading. */

@font-face {
  font-family: "IM Fell English";
  src: url("fonts/im-fell-english-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IM Fell English";
  src: url("fonts/im-fell-english-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Libre Caslon Text";
  src: url("fonts/libre-caslon-text-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Libre Caslon Text";
  src: url("fonts/libre-caslon-text-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --lampblack: #16130f;
  --parchment: #e9ddc3;
  --gilt: #c4a86c;   /* matches the T&T monogram */
  --umber: #a89880;   /* secondary text */
  --rule: #5a4c38;    /* inner hairlines */

  --display: "IM Fell English", "Iowan Old Style", Georgia, serif;
  --text: "Libre Caslon Text", "Iowan Old Style", Georgia, serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--lampblack);
  color: var(--parchment);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.7;
  padding: clamp(1.25rem, 5vw, 4rem) 1rem 2rem;
}

a {
  color: var(--gilt);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

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

/* The card */

.card {
  width: 100%;
  max-width: 38rem;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 3.5rem) clamp(1.25rem, 6vw, 3.5rem);
  border: 4px double var(--gilt);
  outline: 1px solid var(--rule);
  outline-offset: 7px;
  text-align: center;
}

.monogram {
  display: block;
  width: clamp(5.5rem, 18vw, 7.5rem);
  height: auto;
  margin: 0 auto;
}

.card h1 {
  margin: 0.75rem 0 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 6.5vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.card h1,
.subtitle,
.houses p,
.site-footer p {
  text-wrap: balance;
}

.nowrap {
  white-space: nowrap;
}

.subtitle {
  margin: 0.4rem 0 0;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--umber);
}

.fleuron {
  margin: 2rem auto;
  border: 0;
  height: 1.4rem;
  width: 100%;
  max-width: 18rem;
  background:
    linear-gradient(var(--gilt), var(--gilt)) left center / calc(50% - 1.4rem) 1px no-repeat,
    linear-gradient(var(--gilt), var(--gilt)) right center / calc(50% - 1.4rem) 1px no-repeat;
  position: relative;
}

.fleuron::after {
  content: "\2766";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -54%);
  font-family: var(--text);
  font-size: 1.25rem;
  line-height: 1;
  color: var(--gilt);
}

.card h2 {
  margin: 0 0 1.25rem;
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--gilt);
}

.houses {
  margin: 0;
  padding: 0;
  list-style: none;
}

.houses li + li {
  margin-top: 1.6rem;
}

.houses h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.2;
}

.houses p {
  margin: 0.2rem auto 0;
  max-width: 28rem;
  color: var(--parchment);
}

.houses .visit {
  margin-top: 0.35rem;
}

.contact {
  margin: 0;
}

/* Below the card */

.site-footer {
  width: 100%;
  max-width: 38rem;
  margin: 2.25rem auto 0;
  text-align: center;
  font-size: 0.92rem;
  color: var(--umber);
}

.site-footer p {
  margin: 0.25rem 0;
}

.site-footer a {
  color: var(--umber);
}

.site-footer a:hover {
  color: var(--parchment);
}

/* Document pages (privacy, 404) */

.doc {
  text-align: left;
}

.doc h1 {
  text-align: center;
}

.doc .effective {
  margin: 0.4rem 0 0;
  text-align: center;
  font-family: var(--display);
  font-style: italic;
  color: var(--umber);
}

.doc h2 {
  margin: 2rem 0 0.4rem;
  font-style: normal;
  font-size: 1.4rem;
  color: var(--parchment);
}

.doc p {
  margin: 0 0 1rem;
}

.home-link {
  display: block;
  width: 3.4rem;
  margin: 0 auto;
}

.home-link img {
  display: block;
  width: 100%;
  height: auto;
}
