/* Made By EsMa — holding page styles.
   Neutral, temporary look: change the tokens in :root (and the light-scheme
   block) when the real brand kit exists. No fonts are loaded from third parties. */

:root {
  color-scheme: dark light;

  /* Dark scheme (default): espresso with crema text and a gold accent. */
  --bg: #2b1a12;
  --surface: #3a2619;
  --text: #f3e9dc;
  --muted: #cdbfae;
  --accent: #c6a23f;
  --on-accent: #2b1a12;
  --line: #5a4330;
  --focus: #f3e9dc;

  --font-serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    /* Light scheme: crema background, espresso text, darker gold for AA contrast. */
    --bg: #f3e9dc;
    --surface: #fffbf4;
    --text: #2b1a12;
    --muted: #5a4636;
    --accent: #7a5c12;
    --on-accent: #f3e9dc;
    --line: #d9c9b4;
    --focus: #2b1a12;
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.5;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
  width: 100%;
  max-width: 34rem;
  margin: 0 auto;
  padding: 3rem 1rem 2rem; /* 16 px side gutters */
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

footer {
  padding: 1.5rem 1rem 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

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

footer a {
  color: inherit;
}

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

p {
  margin: 0 0 0.75rem;
}

/* Wordmark: "made by" small and italic, "EsMa" big and bold. */
.wordmark {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1;
}

.wordmark__pre {
  display: block;
  margin-bottom: 0.4em;
  font-size: clamp(1.125rem, 4vw, 1.5rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--accent);
}

.wordmark__name {
  display: block;
  font-size: clamp(3.25rem, 16vw, 5.5rem);
  letter-spacing: -0.01em;
}

.wordmark--small .wordmark__pre {
  font-size: clamp(1rem, 3.5vw, 1.25rem);
}

.wordmark--small .wordmark__name {
  font-size: clamp(2.5rem, 12vw, 3.5rem);
}

.rule {
  width: 4rem;
  height: 3px;
  margin: 1.25rem auto;
  border: 0;
  border-radius: 2px;
  background: var(--accent);
}

.eyebrow {
  margin: 0 0 1.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.lead {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
}

.muted {
  color: var(--muted);
}

.contact {
  margin: 2rem 0 0;
}

.more {
  margin: 1.75rem 0 0;
  font-size: 0.95rem;
}

/* Buttons: used for the mail link on the home page and the stack on /links. */
.btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  width: 100%;
  max-width: 100%;
  min-height: 3.5rem;
  padding: 0.8rem 1.25rem;
  border: 1.5px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.btn small {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted);
}

.btn:hover,
.btn:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.btn:hover small,
.btn:focus-visible small {
  color: inherit;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  display: inline-flex;
  width: auto;
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

/* "Shop" on /links: not a link yet, so it gets the disabled look. */
.btn--soon,
.btn--soon:hover {
  background: transparent;
  border-style: dashed;
  border-color: var(--line);
  color: var(--muted);
  cursor: not-allowed;
}

.btn--soon small,
.btn--soon:hover small {
  color: var(--muted);
}

/* Social pills on the home page. */
.social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.social a {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.social a:hover,
.social a:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

/* Link-in-bio stack on /links. */
.links main {
  max-width: 28rem;
  justify-content: flex-start;
  padding-top: 2.5rem;
}

.tagline {
  margin: 1.25rem 0 0;
}

.stack {
  display: grid;
  gap: 0.75rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .social a {
    transition: none;
  }

  .btn:active {
    transform: none;
  }
}
