:root {
  --ink: #1b1a17;
  --muted: #5f574d;
  --paper: #f6efe3;
  --panel: #fffdf8;
  --line: #d7c6a6;
  --maroon: #5b1724;
  --red: #722130;
  --green: #182a20;
  --charcoal: #181715;
  --gold: #bd9143;
  --cream: #f3e9d7;
  --pale: #e8dcc6;
  --shadow: 0 14px 34px rgba(22, 20, 17, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.07rem;
  font-weight: 400;
  line-height: 1.65;
}

a {
  color: var(--red);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

img {
  max-width: 100%;
  height: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  left: 0;
}

.site-header {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(246, 239, 227, 0.94)),
    var(--tartan-texture-image, var(--panel));
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 14px rgba(22, 20, 17, 0.09);
}

.tartan-band {
  min-height: 30px;
  background:
    linear-gradient(rgba(24, 42, 32, 0.08), rgba(24, 42, 32, 0.2)),
    var(--tartan-texture-image, repeating-linear-gradient(90deg, var(--green) 0 38px, var(--maroon) 38px 62px, var(--charcoal) 62px 96px, var(--gold) 96px 102px, var(--cream) 102px 106px, var(--green) 106px 144px));
  background-position: center;
  background-size: cover;
  border-bottom: 3px solid rgba(189, 145, 67, 0.72);
  box-shadow: inset 0 -1px 0 rgba(255, 253, 248, 0.32);
}

.header-inner,
.site-nav ul,
.content-wrap,
.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.72rem 0 0.85rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-badge {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 86px;
  height: 86px;
  padding: 5px;
  border: 3px solid var(--gold);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.28), transparent 54%),
    var(--tartan-texture-image, transparent),
    var(--green);
  background-position: center;
  background-size: cover;
  box-shadow: 0 7px 22px rgba(24, 42, 32, 0.26);
  overflow: hidden;
}

.brand-badge img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
}

.brand-name,
.brand-motto {
  display: block;
}

.brand-name {
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: 0;
}

.brand-motto {
  color: var(--muted);
  font-size: 0.95rem;
  font-style: italic;
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--maroon);
  border-radius: 6px;
  background: var(--maroon);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.button.secondary {
  border-color: rgba(234, 223, 201, 0.76);
  background: rgba(255, 253, 248, 0.92);
  color: var(--maroon);
}

.header-cta:hover,
.button:hover {
  background: #4c141e;
  border-color: #4c141e;
}

.button.secondary:hover {
  background: var(--cream);
  border-color: var(--gold);
  color: var(--maroon);
}

.nav-toggle {
  display: none;
  min-height: 44px;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: 700 0.92rem Arial, sans-serif;
}

.site-nav {
  border-top: 1px solid var(--line);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  padding: 0.35rem 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 0.55rem 0.65rem;
  border-radius: 6px;
  color: var(--ink);
  font-family: Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--cream);
  color: var(--maroon);
}

.hero {
  position: relative;
  background:
    linear-gradient(90deg, rgba(24, 42, 32, 0.92), rgba(24, 23, 21, 0.84) 54%, rgba(91, 23, 36, 0.68)),
    var(--tartan-header-image, linear-gradient(135deg, var(--green), var(--maroon) 55%, var(--ink)));
  background-color: var(--green);
  background-position: center;
  background-size: cover;
  color: #fff;
}

.hero .content-wrap {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--gold);
  font: 700 0.82rem Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  margin: 0 0 0.9rem;
  font-size: clamp(2.15rem, 3.5vw, 3rem);
  font-weight: 700;
}

h2 {
  margin-top: 1.8rem;
  margin-bottom: 0.65rem;
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  font-weight: 700;
}

h3 {
  margin-top: 1.35rem;
  margin-bottom: 0.5rem;
  font-size: clamp(1.18rem, 1.8vw, 1.35rem);
  font-weight: 650;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
}

.hero p {
  max-width: 760px;
  margin: 0 0 1.2rem;
  font-size: clamp(1.06rem, 1.6vw, 1.18rem);
}

.content-wrap {
  padding: 2.2rem 0 3rem;
}

.article-content,
.article-body {
  max-width: 900px;
  font-size: 1.06rem;
  line-height: 1.68;
}

.article-content h2,
.article-body h2 {
  margin-top: 1.85rem;
  margin-bottom: 0.6rem;
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  font-weight: 700;
}

.article-content h3,
.article-body h3 {
  margin-top: 1.45rem;
  margin-bottom: 0.45rem;
  font-size: clamp(1.18rem, 1.8vw, 1.35rem);
  font-weight: 650;
}

.article-content p,
.article-body p {
  margin-top: 0.85rem;
  margin-bottom: 0.85rem;
}

.article-content > p,
.article-body > p,
.article-section > p {
  max-width: 760px;
}

.article-content ul,
.article-body ul,
.article-section ul {
  max-width: 760px;
  padding-left: 1.35rem;
}

.article-section {
  margin: 2rem 0;
}

.article-lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: clamp(1.25rem, 4vw, 2.2rem);
  align-items: start;
  margin: 1.25rem 0 1.8rem;
}

.article-lead.portrait-lead {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
}

.article-lead.landscape-lead {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
}

.article-lead.full-image-lead {
  display: block;
  max-width: 820px;
}

.article-lead-text > :first-child,
.article-lead-media > :first-child {
  margin-top: 0;
}

.article-lead-text > :last-child,
.article-lead-media > :last-child {
  margin-bottom: 0;
}

.article-lead .image-card {
  width: 100%;
  margin: 0;
}

.article-lead .image-card.lead-image {
  max-width: 320px;
  justify-self: end;
}

.article-lead.portrait-lead .image-card.lead-image {
  max-width: 300px;
}

.article-lead .image-card.lead-image.landscape {
  max-width: 420px;
}

.article-lead.full-image-lead .image-card.lead-image,
.image-card.full-width-image {
  width: 100%;
  max-width: 820px;
  margin: 1.1rem 0 1.35rem;
}

.image-card.article-image {
  max-width: 680px;
}

.page-header {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.94), rgba(247, 241, 230, 0.9)),
    var(--tartan-texture-image, linear-gradient(90deg, var(--cream), var(--pale)));
  background-position: center;
  background-size: cover;
}

.page-header .content-wrap {
  padding: 2.1rem 0 1.8rem;
}

.page-header h1 {
  color: var(--green);
  font-size: clamp(2.15rem, 3.5vw, 3rem);
}

.lead {
  max-width: 820px;
  color: var(--muted);
  font-size: clamp(1.14rem, 1.8vw, 1.2rem);
  line-height: 1.6;
}

.feature-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 310px);
  gap: clamp(1.4rem, 4vw, 2.6rem);
  align-items: center;
  margin-bottom: 1.8rem;
}

.feature-split h2 {
  margin-top: 0;
}

.heritage-figure {
  max-width: 310px;
  margin: 0;
  justify-self: end;
  border: 1px solid rgba(189, 145, 67, 0.78);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 253, 248, 0.82), rgba(255, 253, 248, 0.82)),
    var(--tartan-texture-image, var(--cream));
  box-shadow:
    0 0 0 6px rgba(189, 145, 67, 0.12),
    var(--shadow);
  overflow: hidden;
}

.heritage-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 14%;
}

.crest-figure {
  max-width: 340px;
  padding: 0.45rem;
  background:
    linear-gradient(135deg, rgba(189, 145, 67, 0.24), rgba(255, 253, 248, 0.92) 42%, rgba(91, 23, 36, 0.12)),
    var(--tartan-texture-image, var(--cream));
}

.crest-figure img {
  aspect-ratio: 1;
  border: 1px solid rgba(91, 23, 36, 0.28);
  border-radius: 6px;
  object-fit: cover;
  object-position: center;
}

.home-brooch-card {
  max-width: 360px;
  padding: 0.55rem;
  background:
    linear-gradient(135deg, rgba(189, 145, 67, 0.2), rgba(255, 253, 248, 0.9) 45%, rgba(24, 42, 32, 0.12)),
    var(--tartan-texture-image, var(--cream));
}

.home-brooch-card img {
  aspect-ratio: 4 / 5;
  background: rgba(255, 253, 248, 0.74);
  object-fit: contain;
  object-position: center;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.card,
.notice,
.article-list a,
.gallery-item,
.shop-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.card,
.notice,
.gallery-item,
.shop-card-body {
  padding: 1.15rem;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 100%;
  box-shadow: 0 10px 24px rgba(22, 20, 17, 0.1);
}

.card h3 {
  color: var(--green);
  font-size: clamp(1.12rem, 1.6vw, 1.28rem);
  font-weight: 650;
}

.card p {
  margin: 0;
}

.card a {
  margin-top: auto;
  font-family: Arial, sans-serif;
  font-weight: 700;
}

.card h3,
.gallery-item h3 {
  margin-top: 0;
}

.article-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  padding: 0;
  list-style: none;
}

.article-list a {
  display: block;
  padding: 0.9rem 1rem;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.article-list a:hover {
  border-color: var(--gold);
  color: var(--red);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.35rem 0 2rem;
}

.download-card {
  display: grid;
  align-content: start;
  gap: 0.8rem;
  min-height: 100%;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 24px rgba(22, 20, 17, 0.1);
}

.download-card h3 {
  margin: 0 0 0.45rem;
  color: var(--green);
  font-size: 1.12rem;
}

.download-card p {
  margin: 0;
}

.download-card .button {
  width: fit-content;
}

.download-meta,
.download-unavailable {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
}

.download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.download-unavailable {
  width: fit-content;
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(142, 31, 47, 0.28);
  border-radius: 6px;
  background: rgba(142, 31, 47, 0.08);
  color: var(--red);
  font-weight: 700;
}

.notice {
  border-left: 5px solid var(--gold);
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.96), rgba(244, 234, 216, 0.88)),
    var(--tartan-texture-image, var(--cream));
  background-position: center;
  background-size: cover;
}

.notice-with-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 1rem;
  align-items: center;
}

.notice-with-media img {
  width: 132px;
  height: 132px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: var(--green);
  object-fit: contain;
}

.contact-form {
  display: grid;
  gap: 0.45rem;
  max-width: 760px;
  margin-top: 1.2rem;
}

.contact-form label {
  font-family: Arial, sans-serif;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: 1rem Arial, sans-serif;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .button {
  width: fit-content;
  margin-top: 0.6rem;
}

.bot-check {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-message {
  max-width: 760px;
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  border-radius: 6px;
  background: #fff;
  font-family: Arial, sans-serif;
}

.form-message.success {
  border: 1px solid rgba(22, 75, 61, 0.45);
  color: var(--green);
}

.form-message.error {
  border: 1px solid rgba(142, 31, 47, 0.45);
  color: var(--red);
}

.heritage-quote,
.quote-block {
  margin: 1.4rem 0;
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--green);
  background: var(--panel);
  color: #38302a;
  font-size: 1.04rem;
  line-height: 1.68;
  box-shadow: 0 8px 20px rgba(22, 20, 17, 0.08);
}

.heritage-quote p:first-child,
.quote-block p:first-child {
  margin-top: 0;
}

.heritage-quote p:last-child,
.quote-block p:last-child {
  margin-bottom: 0;
}

.source-note,
.historical-note {
  max-width: 760px;
  margin: 1rem 0;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.94rem;
  line-height: 1.55;
}

.caption {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.article-content .source-note,
.article-content .caption,
.article-body .source-note,
.article-body .caption {
  font-size: 0.94rem;
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-item {
  padding: 0;
  overflow: hidden;
}

.gallery-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid var(--line);
  object-fit: cover;
  object-position: center;
}

.gallery-item h3 {
  margin: 0;
  padding: 0.95rem 1rem 1rem;
  color: var(--green);
  font-size: clamp(1.08rem, 1.5vw, 1.24rem);
  font-weight: 650;
}

.gallery-item figcaption,
.image-card figcaption,
.archive-figure figcaption {
  padding: 0.8rem 0.95rem 0.95rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

.archive-list {
  display: grid;
  gap: 1.8rem;
}

.archive-section {
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}

.archive-section h2 {
  margin-bottom: 0.25rem;
}

.archive-location {
  margin-top: 0;
  color: var(--muted);
  font-size: 1.04rem;
  font-style: italic;
}

.archive-gallery {
  margin-top: 1rem;
}

.image-card,
.archive-figure {
  max-width: 760px;
  margin: 1.5rem 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.image-card img,
.archive-figure img {
  display: block;
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  object-position: center;
  background: #fffaf0;
}

.image-card.portrait,
.portrait-figure {
  max-width: 360px;
}

.image-card.lead-image.portrait img {
  max-height: 380px;
}

.image-card.landscape img,
.gallery-image {
  object-fit: cover;
}

.image-card.full-width-image img {
  max-height: 470px;
  object-fit: cover;
}

.image-card.centered {
  margin-right: auto;
  margin-left: auto;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}

.shop-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.shop-card-image,
.shop-card-placeholder {
  width: 100%;
  aspect-ratio: 1;
}

.shop-card-image {
  display: block;
  object-fit: cover;
  object-position: center;
  border-bottom: 1px solid var(--line);
}

.shop-card-placeholder {
  display: grid;
  place-items: center;
  padding: 1rem;
  border-bottom: 1px solid rgba(189, 145, 67, 0.52);
  background:
    linear-gradient(135deg, rgba(24, 42, 32, 0.9), rgba(24, 23, 21, 0.84) 52%, rgba(91, 23, 36, 0.74)),
    var(--tartan-texture-image, var(--green));
  background-position: center;
  background-size: cover;
  color: var(--cream);
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
}

.shop-card-body {
  display: grid;
  align-content: start;
  gap: 0.75rem;
}

.shop-card-body h2 {
  margin: 0;
  color: var(--green);
  font-size: 1.12rem;
}

.shop-card-body p {
  margin: 0;
}

.shop-card-body .button {
  width: fit-content;
  margin-top: 0.25rem;
}

.image-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(189, 145, 67, 0.48);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(24, 42, 32, 0.12), rgba(91, 23, 36, 0.1)),
    var(--panel);
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  text-align: center;
}

.gallery-placeholder {
  padding: 1rem;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.92), rgba(232, 220, 198, 0.78)),
    var(--tartan-texture-image, var(--cream));
  background-position: center;
  background-size: cover;
}

.gallery-placeholder span {
  display: inline-block;
  max-width: 12rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(189, 145, 67, 0.5);
  border-radius: 6px;
  background: rgba(255, 253, 248, 0.88);
}

.site-footer {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(rgba(24, 42, 32, 0.94), rgba(24, 23, 21, 0.96)),
    var(--tartan-texture-image, var(--ink));
  background-position: center;
  background-size: cover;
  color: #f8f1e7;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.4fr;
  gap: 1rem;
  padding: 1.6rem 0;
}

.site-footer a {
  display: inline-block;
  margin-right: 0.8rem;
  color: #f2cf87;
}

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

.copyright {
  color: #d4c8b8;
  font-size: 0.9rem;
}

@media (max-width: 840px) {
  body {
    font-size: 1.03rem;
  }

  h1 {
    font-size: clamp(2rem, 8vw, 2.55rem);
  }

  h2 {
    font-size: clamp(1.35rem, 5.2vw, 1.65rem);
  }

  .page-header h1 {
    font-size: clamp(2rem, 7vw, 2.45rem);
  }

  .article-content h2,
  .article-body h2 {
    font-size: clamp(1.35rem, 4.8vw, 1.6rem);
  }

  .hero h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .lead {
    font-size: 1.1rem;
  }

  .header-inner {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .brand {
    max-width: calc(100% - 92px);
  }

  .brand-badge {
    width: 62px;
    height: 62px;
    padding: 4px;
  }

  .header-cta {
    order: 3;
    width: 100%;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul,
  .footer-inner,
  .grid,
  .article-list,
  .download-grid,
  .gallery-grid,
  .shop-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .site-nav a {
    padding: 0.7rem 0;
  }

  .feature-split,
  .article-lead,
  .notice-with-media {
    grid-template-columns: 1fr;
  }

  .article-lead .image-card.lead-image {
    justify-self: start;
    max-width: min(100%, 320px);
  }

  .article-lead.landscape-lead .image-card.lead-image,
  .article-lead.full-image-lead .image-card.lead-image,
  .image-card.full-width-image {
    max-width: 100%;
  }

  .heritage-figure {
    justify-self: start;
    max-width: min(100%, 280px);
  }

  .notice-with-media img {
    width: 104px;
    height: 104px;
  }
}

@media (min-width: 841px) and (max-width: 1050px) {
  .grid,
  .gallery-grid,
  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
