/*
Theme Name: The Y.A.C.K. Institute
Theme URI: https://yack.institute
Author: The Y.A.C.K. Institute
Description: A quiet Victorian natural-history archive theme. Restorations are a custom post type; the Restoration Status counters are driven by real post counts.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: yack-institute
*/

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #f3ecdd;
  color: #2a2620;
  font-family: 'Spectral', Georgia, serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: #d9cfb8; color: #26231e; }

a { color: #33302a; }
a:hover { color: #7a3b2e; }

/* Paper texture */
.yack-texture {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" stitchTiles="stitch"/><feColorMatrix type="saturate" values="0"/></filter><rect width="100%25" height="100%25" filter="url(%23n)"/></svg>');
  mix-blend-mode: multiply;
}

/* Layout */
.yack-wrap { max-width: 1080px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }
.yack-divider { height: 1px; background: rgba(42,38,32,.16); }
.yack-rule { width: 64px; height: 1px; background: rgba(42,38,32,.3); margin: 0 auto 40px; }
.yack-rule--sm { width: 40px; margin-bottom: 32px; background: rgba(42,38,32,.25); }

/* Header */
.yack-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(243,236,221,.9); backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(42,38,32,.18);
}
.yack-header__inner {
  max-width: 1080px; margin: 0 auto; padding: 18px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.yack-header__brand {
  font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 20px;
  letter-spacing: .14em; text-transform: uppercase; color: #2a2620; text-decoration: none; white-space: nowrap;
}
.yack-nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.yack-nav a { font-size: 14px; letter-spacing: .06em; color: #4a453c; text-decoration: none; }
.yack-nav a:hover { color: #2a2620; }

/* Type */
h1, h2, h3 { font-family: 'Cormorant Garamond', serif; font-weight: 500; color: #26231e; }
.yack-h1 { font-size: clamp(42px, 7vw, 76px); line-height: 1.04; letter-spacing: .02em; margin: 0 0 24px; }
.yack-h2 { font-size: clamp(28px, 4vw, 38px); letter-spacing: .03em; margin: 0 0 8px; }
.yack-kicker { font-size: 14px; letter-spacing: .2em; text-transform: uppercase; color: #8a7f6b; margin: 0 0 44px; }
.yack-lede { font-size: clamp(16px, 2vw, 19px); line-height: 1.75; color: #423d34; }
.yack-italic { font-family: 'Cormorant Garamond', serif; font-style: italic; color: #5a5346; }

/* Sections */
.yack-section { padding: 88px 0; scroll-margin-top: 90px; }
.yack-center { text-align: center; }
.yack-hero { padding: 120px 0 96px; text-align: center; max-width: 760px; margin: 0 auto; }
.yack-hero__emblem { display: block; width: clamp(200px, 32vw, 320px); height: auto; margin: 0 auto 36px; }
.yack-hero__est { font-size: 13px; letter-spacing: .34em; text-transform: uppercase; color: #8a7f6b; margin: 0 0 32px; }
.yack-hero__sub { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: clamp(20px, 3vw, 26px); color: #5a5346; margin: 0 0 40px; line-height: 1.4; }

/* Buttons */
.yack-btn {
  display: inline-block; font-family: 'Spectral', serif; font-size: 14px; letter-spacing: .14em;
  text-transform: uppercase; color: #26231e; text-decoration: none; background: transparent;
  border: 1px solid rgba(42,38,32,.5); padding: 15px 34px; cursor: pointer;
  transition: background .3s, color .3s;
}
.yack-btn:hover { background: #26231e; color: #f3ecdd; }
.yack-btn--solid { background: #26231e; color: #f3ecdd; border: none; padding: 17px 42px; }
.yack-btn--solid:hover { background: #3d382f; color: #f3ecdd; }

/* Latest restorations */
.yack-latest { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.yack-latest a {
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: clamp(24px, 3.2vw, 30px);
  color: #33302a; text-decoration: none; border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: border-color .3s, color .3s;
}
.yack-latest a:hover { color: #7a3b2e; border-bottom-color: rgba(122,59,46,.5); }

/* Status counters */
.yack-status { max-width: 560px; margin: 0 auto; }
.yack-status__row { display: flex; align-items: baseline; gap: 12px; padding: 16px 0; }
.yack-status__label { font-size: clamp(15px, 2vw, 18px); color: #423d34; white-space: nowrap; }
.yack-status__dots { flex: 1; border-bottom: 1px dotted rgba(42,38,32,.4); transform: translateY(-4px); }
.yack-status__value { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: clamp(22px, 3vw, 28px); color: #26231e; white-space: nowrap; }
.yack-status__meta-label { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: #8a7f6b; margin: 0 0 6px; }
.yack-status__meta-value { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 22px; color: #33302a; margin: 0 0 40px; }
.yack-status__recent { font-family: 'Cormorant Garamond', serif; font-size: clamp(26px, 4vw, 34px); color: #26231e; margin: 0; }
.yack-status__recent a { text-decoration: none; color: inherit; }
.yack-status__recent a:hover { color: #7a3b2e; }

/* Archive catalogue */
.yack-search { max-width: 520px; margin: 0 auto 8px; }
.yack-search input[type="search"] {
  width: 100%; font-family: 'Spectral', serif; font-size: 16px; color: #2a2620;
  background: transparent; border: none; border-bottom: 1px solid rgba(42,38,32,.4);
  padding: 12px 4px; outline: none;
}
.yack-search input[type="search"]:focus { border-bottom-color: #2a2620; }
.yack-catalogue { max-width: 640px; margin: 40px auto 0; }
.yack-catalogue ul { list-style: none; margin: 0; padding: 0; }
.yack-catalogue li { border-bottom: 1px solid rgba(42,38,32,.12); }
.yack-catalogue a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  padding: 18px 4px; text-decoration: none; color: #33302a; transition: color .25s;
}
.yack-catalogue a:hover { color: #7a3b2e; }
.yack-catalogue__name { font-family: 'Cormorant Garamond', serif; font-size: clamp(20px, 2.6vw, 25px); font-style: italic; }
.yack-catalogue__kind { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #9a8f79; white-space: nowrap; }
.yack-empty { text-align: center; font-style: italic; color: #8a7f6b; font-family: 'Cormorant Garamond', serif; font-size: 20px; padding: 32px 0; }

/* Forms */
.yack-form { max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: 26px; text-align: left; }
.yack-form label { display: flex; flex-direction: column; gap: 8px; }
.yack-form .yack-label { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #8a7f6b; }
.yack-form .yack-optional { text-transform: none; letter-spacing: 0; font-style: italic; color: #a89d86; }
.yack-form input[type="text"],
.yack-form input[type="email"],
.yack-form textarea {
  font-family: 'Spectral', serif; font-size: 16px; color: #2a2620; background: transparent;
  border: none; border-bottom: 1px solid rgba(42,38,32,.35); padding: 8px 2px; outline: none; resize: vertical;
}
.yack-form input:focus, .yack-form textarea:focus { border-bottom-color: #2a2620; }
.yack-form .yack-btn { align-self: center; margin-top: 12px; }
.yack-form-thanks { text-align: center; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 24px; color: #33302a; max-width: 520px; margin: 0 auto; }

/* Instagram placeholder */
.yack-ig-slot {
  max-width: 640px; margin: 56px auto 0; border: 1px dashed rgba(42,38,32,.25);
  padding: 40px; color: #a89d86; font-style: italic; font-size: 14px; letter-spacing: .04em; text-align: center;
}

/* Single restoration */
.yack-single { max-width: 720px; margin: 0 auto; padding: 96px 0; }
.yack-single__kind { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: #8a7f6b; margin: 0 0 16px; text-align: center; }
.yack-single__title { font-size: clamp(36px, 6vw, 56px); font-style: italic; text-align: center; margin: 0 0 40px; }
.yack-single__figure { margin: 0 0 48px; }
.yack-single__figure img { width: 100%; height: auto; display: block; border: 1px solid rgba(42,38,32,.2); padding: 12px; background: #f8f3e7; }
.yack-single__content { font-size: 17px; line-height: 1.8; color: #423d34; }
.yack-single__content p { margin: 0 0 1.4em; }
.yack-back { display: inline-block; margin-top: 48px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: #8a7f6b; }
.yack-back:hover { color: #2a2620; }

/* Footer */
.yack-footer { position: relative; z-index: 1; border-top: 1px solid rgba(42,38,32,.18); margin-top: 40px; }
.yack-footer__inner { max-width: 1080px; margin: 0 auto; padding: 64px 32px; text-align: center; }
.yack-footer__brand { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 20px; letter-spacing: .14em; text-transform: uppercase; color: #2a2620; margin: 0 0 8px; }
.yack-footer__tag { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 17px; color: #5a5346; margin: 0 0 32px; }
.yack-footer__copy { font-size: 13px; color: #8a7f6b; margin: 0 0 14px; }
.yack-footer__disclaimer { font-size: 13px; font-style: italic; line-height: 1.7; color: #a89d86; max-width: 480px; margin: 0 auto; }
