/* =========================================================
   Recorder from the Ground Up — Companion Website
   ========================================================= */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;1,400;1,500&display=swap');

@font-face {
  font-family: 'JSL Ancient';
  font-style: normal;
  font-weight: 400;
  src: local('JSL Ancient'), url('https://fonts.cdnfonts.com/s/71091/jancient.woff') format('woff');
}

@font-face {
  font-family: 'JSL Ancient';
  font-style: italic;
  font-weight: 400;
  src: local('JSL Ancient'), url('https://fonts.cdnfonts.com/s/71091/jancieni.woff') format('woff');
}


/* --- Custom Properties --- */
:root {
  --color-bg:        #f4efe3;
  --color-bg-rule:   #c8b88a;
  --color-text:      #1a1208;
  --color-text-muted:#54281f; /* #5a4e38; */
  --color-link:      #2a1a00;
  --color-nav-hover: #54281f;

  --font-heading:    'JSL Ancient', 'Palatino Linotype', serif;
  --font-body:       'EB Garamond', Garamond, 'Times New Roman', serif;
  --font-colophon:   Arial, Helvetica, sans-serif;

  --page-max:        760px;
  --page-pad-h:      2.5rem;
  --body-size:       1.2rem;
  --line-height:     1.75;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: var(--line-height);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- Page Wrapper --- */
.page-wrapper {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--page-pad-h);
  flex: 1;
}

/* --- Decorative Rules --- */
.ornament-rule {
  height: 30px;
  background-image: url('images/border_horizontal.png');
  background-repeat: repeat-x;
  background-size: auto 30px;
  background-position: center;
}

/* --- Site Header --- */
.site-header {
  text-align: center;
  padding: 2.8rem var(--page-pad-h) 0;
  max-width: var(--page-max);
  margin: 0 auto;
  width: 100%;
}

.site-title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: normal;
  line-height: 1.15;
  letter-spacing: 0.04em;
  color: var(--color-text);
  margin-bottom: 0.15em;
}

.site-subtitle {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: normal;
  color: var(--color-text);
  margin-bottom: 1.2rem;
  letter-spacing: 0.02em;
}

/* --- Navigation --- */
.site-nav {
  text-align: center;
  padding: 0.7rem 0;
}

.site-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.site-nav li {
  display: flex;
  align-items: center;
}

.site-nav li + li::before {
  content: '·';
  color: var(--color-bg-rule);
  /* font-size: 1.4rem; */
  padding: 0 0.8rem 0.5rem 0.8rem;
  line-height: 1;
}

.site-nav a {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--color-link);
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--color-nav-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- Main Content --- */
main {
  padding: 2rem 0 3rem;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: normal;
  color: var(--color-text);
  line-height: 1.25;
}

h1 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}

h2 {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.2rem, 2.8vw, 1.55rem);
  margin: 2.2rem 0 0.75rem;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

h3 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.5rem;
}

p, main ul {
  margin-bottom: 1.1em;
}

p:last-child {
  margin-bottom: 0;
}

main li {
  margin-left: 1.5em;
}

a {
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

em, i {
  font-style: italic;
}

.drop-cap-image {
  float: left;
  margin: 0 0.18em 0 0;
  line-height: 1;
  height: calc(var(--body-size) * var(--line-height) * 2.9);
}

.float-right-image {
  float: right;
  line-height: 1;
  height: calc(var(--body-size) * var(--line-height) * 7);
}

.float-left-image {
  float: left;
  line-height: 1;
  height: calc(var(--body-size) * var(--line-height) * 7);
}

/* --- Section Dividers --- */
.section {
  margin-top: 2.5rem;
  padding-top: 2rem;
}

.section::before {
  content: '';
  display: block;
  height: 40px;
  margin-bottom: 2rem;
  background-image: url('images/border_horizontal_new.png');
  background-repeat: repeat-x;
  background-size: auto 40px;
  background-position: center;
}

/* --- Feature Block (pull quote / highlight) --- */
.feature-block {
  border-left: 3px solid var(--color-bg-rule);
  padding: 0.8rem 1.2rem;
  margin: 1.8rem 0;
  color: var(--color-text-muted);
  font-style: italic;
  font-size: 1.1rem;
}

/* --- Purchase Block --- */
.purchase-block {
  border: 1px solid var(--color-bg-rule);
  padding: 1.5rem 1.8rem;
  margin: 1.8rem 0;
  text-align: center;
  clear: both;
}

.purchase-block h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.purchase-block .price {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin: 0.5rem 0 1rem;
}

.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--color-bg);
  background: var(--color-text);
  padding: 0.55em 1.6em;
  text-decoration: none;
  border: 1px solid var(--color-text);
  transition: background 0.15s, color 0.15s;
}

.btn:hover {
  background: var(--color-nav-hover);
  border-color: var(--color-nav-hover);
  color: var(--color-bg);
}

/* --- Colophon / Footer --- */
.site-footer {
  text-align: center;
  padding: 1.2rem var(--page-pad-h) 2rem;
  max-width: var(--page-max);
  margin: 0 auto;
  width: 100%;
}

.colophon {
  font-family: var(--font-colophon);
  font-size: 0.72rem;
  color: var(--color-text-muted);
  letter-spacing: 0.03em;
}

/* --- Responsive --- */
@media (max-width: 600px) {
  :root {
    --page-pad-h: 1.1rem;
    --body-size:  1.05rem;
  }

  .site-header {
    padding-top: 1.8rem;
  }

  .site-title {
    font-size: 1.75rem;
  }

  .site-subtitle {
    font-size: 1rem;
  }

  .site-nav a {
    font-size: 0.95rem;
  }

  .site-nav li + li::before {
    padding: 0 0.5rem 0.5rem 0.5rem;
  }

  h1 {
    font-size: 1.35rem;
  }

  h2 {
    font-size: 1.15rem;
  }

  .purchase-block {
    padding: 1.1rem 1.1rem;
  }
}

/* ── Recording page tabs ── */
.tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 1.5px solid #8b7355;
  margin-bottom: 2rem;
  font-family: 'JSL Ancient', 'EB Garamond', serif;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.tab-nav button {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -1.5px;   /* overlap the nav border-bottom */
  padding: 0.4rem 1.2rem;
  cursor: pointer;
  color: var(--color-link);
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  transition: color 0.15s;
}

.tab-nav button:hover {
  color: var(--color-nav-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tab-nav button.active {
  color: var(--color-text);
  border-bottom: 3px solid #8b7355;
}

/* ── Tab panels ── */
.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}
