/* Tryel Limited — tryel.co.uk */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #faf8f3;
  --text: #111111;
  --muted: #5c5c5c;
  --rule: #e6e1d6;
  --accent: #8a6420;       /* bronze; 5.3:1 on white */
  --accent-line: #b8913f;  /* decorative gold hairlines only */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --measure: 40rem;
  --gutter: clamp(1rem, 5vw, 2.5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e0e;
    --surface: #161512;
    --text: #f2efe8;
    --muted: #a8a39a;
    --rule: #2c2a25;
    --accent: #d4b06a;
    --accent-line: #a8853f;
  }
}

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

html { -webkit-text-size-adjust: 100%; 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(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--text); color: var(--bg); padding: 0.5rem 1rem;
}
.skip:focus { left: 1rem; top: 1rem; z-index: 10; }

.wrap { width: 100%; max-width: 64rem; margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.site-header { border-top: 3px solid var(--accent-line); border-bottom: 1px solid var(--rule); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem 2rem; padding-top: 1.25rem; padding-bottom: 1.25rem;
}
.wordmark {
  font-family: var(--serif); font-size: 1.375rem; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--text); text-decoration: none;
  margin-right: -0.32em; /* balance trailing letter-spacing */
}
.wordmark:hover { color: var(--accent); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.site-nav a {
  display: inline-block; padding: 0.25rem 0;
  font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent-line); }

/* Main */
main { flex: 1; padding: clamp(3rem, 10vw, 6.5rem) 0 clamp(3rem, 8vw, 5rem); }
.content { max-width: var(--measure); }

.eyebrow {
  margin: 0 0 1.25rem; font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: ""; display: inline-block; width: 2rem; height: 1px; margin-right: 0.75rem;
  vertical-align: middle; background: var(--accent-line);
}

h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.2; margin: 0; }
h1 { font-size: clamp(2rem, 6.5vw, 3.25rem); letter-spacing: -0.01em; margin-bottom: 1.5rem; }
h2 { font-size: clamp(1.3rem, 3.5vw, 1.6rem); margin: 2.75rem 0 0.75rem; }
p { margin: 0 0 1.1rem; }
.lede { font-size: clamp(1.125rem, 2.6vw, 1.3rem); color: var(--muted); max-width: 36rem; }

/* Product panel */
.panel {
  margin-top: 3rem; padding: clamp(1.25rem, 4vw, 2rem);
  background: var(--surface); border: 1px solid var(--rule); border-left: 3px solid var(--accent-line);
}
.panel h2 { margin-top: 0; }
.panel p:last-child { margin-bottom: 0; }

.button {
  display: inline-block; margin-top: 0.5rem; padding: 0.7rem 1.4rem;
  border: 1px solid var(--accent); color: var(--accent); text-decoration: none;
  font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.button:hover { background: var(--accent); color: var(--bg); }

/* Facts list */
.facts { margin: 2rem 0 0; padding: 0; border-top: 1px solid var(--rule); }
.facts div { display: grid; grid-template-columns: 1fr; gap: 0.15rem; padding: 0.9rem 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; }
@media (min-width: 40em) {
  .facts div { grid-template-columns: 13rem 1fr; gap: 1.5rem; }
}

.email { font-family: var(--serif); font-size: clamp(1.4rem, 5.5vw, 2rem); }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); background: var(--surface); }
.site-footer .wrap { padding-top: 2rem; padding-bottom: 2.25rem; }
.site-footer nav ul { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.site-footer nav a { font-size: 0.875rem; color: var(--muted); text-decoration: none; }
.site-footer nav a:hover { color: var(--text); text-decoration: underline; }
.legal { margin: 0; max-width: 46rem; font-size: 0.8125rem; line-height: 1.6; color: var(--muted); }
