@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=DM+Sans:wght@400;500;600;700&display=swap');

.reserve-learning {
  --paper: #faf6ea;
  --sheet: #fffcf5;
  --espresso: #201107;
  --muted: #645749;
  --line: #d3c5ae;
  --amber: #814718;
  --teal: #315a52;
  --display: 'Cormorant Garamond', Georgia, serif;
  margin: 0;
  color: var(--espresso);
  background: var(--paper);
  font: 400 1rem/1.5 'DM Sans', system-ui, sans-serif;
}
.reserve-learning *, .reserve-learning *::before, .reserve-learning *::after { box-sizing: border-box; }
.reserve-learning [hidden] { display: none !important; }
.reserve-learning :where(button, input, select, summary) { font: inherit; }
.reserve-learning :where(button, select, summary) { cursor: pointer; }
.reserve-learning main a { color: inherit; }
.reserve-learning :where(main, .learning-nav, .skip-to) :focus-visible,
.skip-to:focus-visible { outline: 3px solid #965016; outline-offset: 3px; }
.reserve-learning main:focus { outline: none; }
.reserve-learning main :is(h1,h2,h3) { margin: 0; font-family: var(--display); font-weight: 600; line-height: 1.04; }
.reserve-learning main p { margin: 0; }
.reserve-learning main img { display: block; }
.skip-to { position: fixed; top: 6px; left: 8px; z-index: 120; padding: 10px 14px; color: var(--espresso); background: var(--paper); transform: translateY(-160%); }
.skip-to:focus { transform: none; }
.learning-nav { border-bottom: 1px solid #44382b; background: #211a14; color: #e9dcc7; }
.learning-nav nav { display: flex; align-items: stretch; gap: clamp(12px,3vw,35px); max-width: 1216px; margin: auto; padding: 0 26px; }
.learning-nav a { display: inline-flex; align-items: center; min-height: 45px; padding: 3px 0 1px; color: inherit; border-bottom: 2px solid transparent; text-decoration: none; font-size: .83rem; font-weight: 500; }
.learning-nav a:is([aria-current="page"],:hover) { color: #f4d293; border-color: #dcaf69; }
.learning-nav :focus-visible { outline-color: #f1c77e; outline-offset: -2px; }
.hub-wrap, .library-wrap { width: min(100%,1216px); margin: auto; padding: 28px 26px 58px; }
.learn-hero { position: relative; isolation: isolate; min-height: 390px; display: flex; align-items: center; overflow: hidden; border-radius: 4px; background: #251b12; color: #faf4e6; }
.learn-hero picture, .learn-hero picture img, .learn-hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.learn-hero picture { z-index: -2; }
.learn-hero picture img { object-fit: cover; object-position: center 53%; }
.learn-hero::after { z-index: -1; content: ''; background: linear-gradient(90deg,rgba(20,15,10,.94) 0%,rgba(23,17,10,.86) 27%,rgba(27,18,12,.52) 46%,transparent 68%); }
.hero-copy { padding: 40px clamp(26px,4.7vw,64px); width: min(58%,640px); }
.reserve-learning .hero-copy h1 { font-size: clamp(3.7rem,6vw,5.9rem); line-height: .92; letter-spacing: -.035em; font-weight: 500; }
.hero-copy h1 em { display: block; font-weight: 500; color: #eac587; }
.reserve-learning .hero-copy p { max-width: 37ch; margin: 18px 0 23px; font-size: 1.04rem; line-height: 1.48; color: #f4ebdc; }
.reserve-learning a.hero-action { display: inline-flex; align-items: center; gap: 18px; min-height: 46px; padding: 10px 17px; background: #e4bb78; color: #25190f; border-radius: 3px; text-decoration: none; font-size: .94rem; font-weight: 700; }
.hero-action:hover { background: #f1d299; }
a.hero-action:focus-visible { outline-color: #fff4d5; }
.interests { margin-top: 37px; }
.reserve-learning .interests h2, .reserve-learning .catalog h2 { font-size: clamp(2rem,3.3vw,2.85rem); letter-spacing: -.027em; }
.interest-grid, .resource-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-top: 19px; }
.interest { background: var(--sheet); border: 1px solid var(--line); border-radius: 4px; display: grid; grid-template-columns: 30% 1fr; min-width: 0; overflow: hidden; }
.interest > img { width: 100%; height: 100%; min-height: 160px; object-fit: cover; }
.interest-copy { padding: 20px; align-self: center; min-width: 0; }
.reserve-learning .interest h3 { font-size: clamp(1.6rem,2.3vw,2.15rem); }
.interest h3 a { text-decoration: none; }
.interest h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.reserve-learning .interest p { margin: 6px 0; font-size: .92rem; color: var(--muted); line-height: 1.45; }
.reserve-learning a.text-link, .journey-choices a, .learn-footer a, a.reader-related { color: var(--amber); font-weight: 700; text-underline-offset: 4px; }
a.text-link, .journey-choices a { display: inline-flex; align-items: center; min-height: 40px; font-size: .87rem; }
.text-link::after { content: ' →'; margin-left: 8px; }
.journey-choices { display: flex; flex-wrap: wrap; gap: 0 13px; }
.library-wrap { padding-top: 22px; }
.library-intro { display: grid; grid-template-columns: 1fr minmax(200px,34%); align-items: center; overflow: hidden; min-height: 140px; margin-bottom: 23px; background: #efe6d5; border: 1px solid #dfd2bc; border-radius: 4px; }
.library-intro > div { padding: 22px clamp(18px,2.8vw,38px); }
.reserve-learning .library-intro h1 { font-size: clamp(3.1rem,5.6vw,5.15rem); letter-spacing: -.045em; }
.reserve-learning .library-intro p { margin-top: 7px; font-size: 1.04rem; color: #514436; }
.library-still { width: 100%; height: 150px; object-fit: cover; object-position: 50% 51%; }
.finder-fields { display: grid; grid-template-columns: minmax(0,1fr) minmax(190px,27%); gap: 16px; }
.finder-fields label { display: block; color: #43362b; font-size: .84rem; font-weight: 700; margin-bottom: 5px; }
.finder :is(input,select) { width: 100%; min-width: 0; height: 46px; border: 1px solid #a9987f; border-radius: 3px; color: var(--espresso); background: #fffdf8; padding: 8px 12px; font-size: 1rem; }
.finder input { padding-left: 42px; }
.finder input::placeholder { color: #706356; opacity: 1; }
.search-box { position: relative; }
.search-symbol { position: absolute; top: 15px; left: 15px; width: 14px; height: 14px; border: 1.8px solid #74634e; border-radius: 50%; pointer-events: none; }
.search-symbol::after { content:''; position: absolute; width: 7px; height: 2px; background: #74634e; transform: rotate(45deg); left: 9px; top: 11px; }
.format-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 22px; }
.format-filters button, .reader-switch button, .zoom-bar button, #close-reader { min-height: 42px; padding: 8px 14px; border: 1px solid #bbab91; background: transparent; color: #403326; border-radius: 3px; font-weight: 600; }
.format-filters button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; }
.format-filters [data-total] { font-size: .77rem; font-variant-numeric: tabular-nums; opacity: .9; }
.format-filters button:hover, .reader-switch button:hover, .zoom-bar button:hover, #close-reader:hover { background: #eee2cc; }
.format-filters button[aria-pressed="true"], .reader-switch button[aria-pressed="true"] { background: #33271c; border-color: #33271c; color: #fff4df; }
.catalog-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.catalog-line .result-tools { display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: center; justify-content: flex-end; font-size: .85rem; color: var(--muted); }
#clear-filters { color: var(--amber); border: 0; background: transparent; font-weight: 700; padding: 0; text-decoration: underline; text-underline-offset: 3px; min-height: 40px; }
.resource-grid { margin-top: 12px; gap: 12px; }
.resource { border: 1px solid var(--line); border-radius: 4px; background: var(--sheet); min-width: 0; scroll-margin-top: calc(var(--reserve-header-height,80px) + 16px); }
.resource-open { display: grid; grid-template-columns: clamp(104px,10.2vw,145px) minmax(0,1fr); height: 100%; text-decoration: none; }
.resource-open:focus-visible { outline-offset: 2px; }
.resource:has(.resource-open:hover) { border-color: #8f7150; }
.resource-open:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.resource-cover { display: grid; place-items: center; min-height: 156px; overflow: hidden; border-radius: 3px 0 0 3px; background: #e7dcc6; }
.resource-cover img { width: 100%; height: 100%; object-fit: cover; }
.resource-guides .resource-cover { padding: 10px; background: #d7c5a4; }
.resource-guides:nth-child(even) .resource-cover { background: #e0d5bf; }
.resource-guides .resource-cover img { height: 132px; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 2px 3px #37230340); }
.resource-copy { padding: 15px 18px; align-self: center; min-width: 0; }
.resource-kind { color: #764519; font-weight: 700; font-size: .69rem; letter-spacing: .065em; line-height: 1.45; text-transform: uppercase; }
.resource-books .resource-kind { color: var(--teal); }
.reserve-learning .resource-open h3 { margin: 4px 0 6px; font-size: clamp(1.55rem,2.35vw,2.05rem); letter-spacing: -.025em; }
.reserve-learning .resource-description { color: #5c5144; line-height: 1.42; font-size: .9rem; }
.resource-action { display: inline-block; margin-top: 10px; color: var(--amber); font-size: .82rem; font-weight: 700; }
.resource-books .resource-action { color: var(--teal); }
.reserve-learning:not(.has-finder) .resource-open { height: auto; }
.record-details { margin: 8px 15px; }
.has-finder .record-details { display: none; }
#empty-results { margin: 16px 0; padding: 24px; border: 1px solid var(--line); border-radius: 4px; background: var(--sheet); }
.learn-footer { margin: 28px 0 0; padding-top: 15px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.learn-footer a { display: inline-flex; align-items: center; min-height: 44px; font-size: .85rem; }
#poster-dialog { margin: auto; padding: 0; width: min(1030px,94vw); max-width: 100%; max-height: 90vh; max-height: 90dvh; overflow: auto; overscroll-behavior: contain; border: 1px solid #bfa786; border-radius: 5px; background: var(--paper); color: var(--espresso); }
#poster-dialog::backdrop { background: rgb(20 15 11 / .72); }
body:has(#poster-dialog[open]) { overflow: hidden; }
.reader-shell { min-width: 0; }
.reader-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 2; }
.reserve-learning .reader-heading h2 { font-size: clamp(1.6rem,3.2vw,2.55rem); }
#close-reader { flex: none; display: flex; align-items: center; gap: 7px; min-height: 44px; }
#close-reader span { font-size: 1.25rem; }
.reader-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(210px,28%); padding: 18px 22px; gap: 18px; align-items: start; }
.reader-options { grid-column: 2; grid-row: 1; }
.reader-work { grid-column: 1; grid-row: 1; min-width: 0; }
.reserve-learning #reader-summary { color: var(--muted); font-size: .96rem; margin-bottom: 12px; }
.file-box { padding-top: 8px; border-top: 1px solid var(--line); }
.file-box summary { font-weight: 700; padding: 7px 0; min-height: 42px; }
#reader-downloads, .record-downloads { display: grid; gap: 6px; }
#reader-downloads a, .record-downloads a { padding: 9px 10px; min-height: 42px; background: var(--sheet); color: #55351b; border: 1px solid #c6b79f; border-radius: 3px; text-decoration: none; font-size: .9rem; font-weight: 600; }
#reader-downloads a:hover, .record-downloads a:hover { background: #efe3cc; }
a.reader-related { display: inline-flex; align-items: center; min-height: 42px; margin-bottom: 8px; }
.reader-switch, .zoom-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.reader-switch { margin-bottom: 8px; }
.reader-switch button, .zoom-bar button { min-height: 40px; font-size: .85rem; }
.zoom-bar { justify-content: flex-end; background: #e4d9c5; border-radius: 3px 3px 0 0; padding: 3px; }
.zoom-bar button { padding: 4px 9px; min-width: 40px; border-color: transparent; }
.zoom-bar button:disabled { opacity: .45; cursor: default; }
.reader-canvas { max-height: 59vh; max-height: 59dvh; overflow: auto; background: #e9deca; }
.reader-canvas img { width: 100%; max-width: none; height: auto; margin: 0 auto; }
.reader-canvas.is-cover { max-height: none; background: #263d33; border-radius: 3px; overflow: hidden; }
.reader-canvas.is-cover img { max-height: 46vh; object-fit: cover; }
.reading-copy { max-width: 72ch; color: #35291f; line-height: 1.65; }
.reserve-learning .reading-copy :is(p,ul,ol,h3,h4) { margin: 0 0 .85em; }
.reserve-learning .reading-copy h3 { font-size: 1.55rem; }
.reading-copy .tasting-aromas { width: 100%; border-collapse: collapse; margin: 0 0 1em; }
.reading-copy .tasting-aromas :is(th,td) { padding: .35em .55em; border-bottom: 1px solid #c9bca7; text-align: left; vertical-align: top; }
.reading-copy ul { padding-left: 24px; }
@media(max-width:800px) {
  .interest-grid { grid-template-columns: 1fr; }
  .interest { grid-template-columns: minmax(108px,25%) minmax(0,1fr); }
  .interest > img { min-height: 128px; }
  .resource-copy { padding: 12px; }
  .resource-open { grid-template-columns: 94px minmax(0,1fr); }
  .resource-guides .resource-cover { padding: 7px; }
  .resource-guides .resource-cover img { height: 110px; }
  .reader-layout { grid-template-columns: minmax(0,1fr) minmax(180px,32%); gap: 12px; }
}
@media(max-width:650px) {
  .hub-wrap, .library-wrap { padding: 13px 14px 28px; }
  .learning-nav nav { justify-content: space-between; gap: 8px; padding: 0 14px; }
  .learning-nav a { font-size: .76rem; min-height: 43px; }
  .learn-hero { min-height: 330px; align-items: flex-end; }
  .learn-hero picture img { object-position: 65% 34%; }
  .learn-hero::after { background: linear-gradient(80deg,rgba(18,13,9,.91) 0%,rgba(22,15,10,.70) 49%,rgba(22,15,10,.11) 100%); }
  .hero-copy { width: 100%; padding: 23px 20px; }
  .reserve-learning .hero-copy h1 { font-size: clamp(3.25rem,13vw,4.5rem); }
  .reserve-learning .hero-copy p { margin: 14px 0 17px; max-width: 31ch; font-size: .96rem; }
  .interests { margin-top: 23px; }
  .interest-grid { gap: 9px; margin-top: 12px; }
  .interest-copy { padding: 12px 13px; }
  .interest { grid-template-columns: 24% minmax(0,1fr); }
  .journey-choices { gap: 0 11px; }
  a.text-link, .journey-choices a { min-height: 42px; }
  .library-intro { display: block; min-height: auto; background: none; border: 0; margin-bottom: 15px; }
  .library-intro > div { padding: 0; }
  .reserve-learning .library-intro h1 { font-size: clamp(2.75rem,10vw,3.8rem); }
  .reserve-learning .library-intro p { font-size: .95rem; max-width: 40ch; margin-top: 3px; }
  .library-still { display: none !important; }
  .finder-fields { grid-template-columns: 1fr; gap: 8px; }
  .finder-fields label { margin-bottom: 3px; font-size: .8rem; }
  .finder :is(input,select) { height: 44px; }
  .topic-field { display: flex; align-items: center; gap: 10px; }
  .topic-field label { margin: 0; }
  .topic-field select { flex: 1; }
  .format-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin: 10px 0 13px; }
  .format-filters button { min-height: 44px; padding: 5px 6px; font-size: .85rem; }
  .catalog-line { padding-top: 10px; }
  .reserve-learning .catalog h2 { font-size: 1.75rem; }
  .resource-grid { grid-template-columns: 1fr; gap: 8px; margin-top: 8px; }
  .resource-open { grid-template-columns: 86px minmax(0,1fr); }
  .resource-cover { min-height: 120px; }
  .resource-guides .resource-cover img { height: 99px; }
  .resource-copy { padding: 10px 11px; }
  .resource-kind { font-size: .65rem; }
  .reserve-learning .resource-open h3 { font-size: 1.48rem; margin: 3px 0; }
  .reserve-learning .resource-description { font-size: .85rem; }
  .resource-action { margin-top: 5px; }
  #poster-dialog { width: calc(100% - 16px); max-height: 94vh; max-height: 94dvh; }
  .reader-heading { padding: 10px 12px; }
  .reader-layout { display: flex; flex-direction: column; padding: 10px 12px; }
  .reader-layout > * { width: 100%; }
  .reader-work { order: 2; }
  .reader-options { order: 1; }
  .reserve-learning #reader-summary { font-size: .88rem; margin-bottom: 6px; }
  .file-box { padding-top: 0; }
  .reader-canvas { max-height: 52vh; max-height: 52dvh; }
}
@media(max-width:360px) {
  .hub-wrap, .library-wrap { padding-inline: 10px; }
  .learning-nav nav { padding: 0 9px; gap: 5px; }
  .learning-nav a { font-size: .72rem; }
  .interest { grid-template-columns: 20% 1fr; }
  .resource-open { grid-template-columns: 75px minmax(0,1fr); }
  .resource-copy { padding-inline: 9px; }
}
@media print {
  .skip-to, .learning-nav, .finder, .result-tools, .learn-footer { display: none; }
  .resource { break-inside: avoid; }
}
