:root {
  color-scheme: light;
  --paper: #f8f6ef;
  --ink: #262722;
  --muted: #4c4c41;
  --rule: #d7d1c3;
  --serif: Baskervville, Georgia, serif;
  --thai: "Noto Sans Thai", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.8 var(--thai); }
a { color: inherit; text-underline-offset: .35em; }
a:focus-visible, input:focus-visible { outline: 2px solid #334a63; outline-offset: 5px; }
img { display: block; max-width: 100%; width: 100%; height: auto; object-fit: cover; }
p, h1, h2 { margin: 0; }
p { color: var(--muted); }
h1, h2, .wordmark { font: 400 1em/1.02 var(--serif); }
h1 { font-size: clamp(3.1rem, 6.6vw, 7.2rem); letter-spacing: -.06em; }
h1 em { font-weight: 400; }
h2 { font-size: clamp(2.2rem, 4.1vw, 4.15rem); letter-spacing: -.045em; }
.frame { width: min(88%, 1360px); margin-inline: auto; }
.header, .footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.header { min-height: 86px; border-bottom: 1px solid var(--rule); }
.wordmark { font-size: 1.85rem; letter-spacing: -.045em; text-decoration: none; }
.header nav { display: flex; align-items: center; gap: clamp(1rem, 4vw, 3.25rem); }
.header nav a, .footer > a:last-child, .quiet { font-size: .9rem; }
.header nav a, .quiet { display: inline-flex; align-items: center; min-height: 44px; gap: .35rem; }
.spaces { text-decoration: none; }
.skip { position: fixed; top: .5rem; left: .5rem; z-index: 1; padding: .5rem; background: var(--paper); transform: translateY(-160%); }
.skip:focus { transform: none; }
.footer { border-top: 1px solid var(--rule); min-height: 92px; }
.booking { max-width: 720px; padding-block: 5rem; }
.booking p { margin-block: 1.5rem; }
.booking label { display: block; margin-bottom: .4rem; }
.booking input { max-width: 100%; min-height: 44px; font: inherit; color: inherit; border: 1px solid var(--rule); background: transparent; padding: .4rem .7rem; }
:root {
  --paper: #f4efe4;
  --blue: #263c63;
  --red: #9e392b;
  --cream: #fff9e8;
  --pulp: #ded1b7;
}
.header { min-height: 72px; }
figure { margin: 0; }
h1 { font-size: clamp(3.75rem, 8.1vw, 8.6rem); color: var(--blue); }
h2 { color: var(--blue); }
h1 em, h2 em { color: var(--red); font-weight: 400; }
.cover, .kitchen, .memory, .visit-object {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(.45rem, 1.5vw, 1.45rem);
}
.cover { position: relative; isolation: isolate; padding-block: clamp(2rem, 6vw, 6rem); align-items: center; }
.cover-copy { grid-area: 1 / 1 / 2 / 7; z-index: 1; }
.cover-copy p { margin-top: 1.5rem; }
.cover-image { grid-area: 1 / 6 / 2 / 13; transform: rotate(-1.2deg); }
.cover-image img { aspect-ratio: 1.28; }
.cover-detail {
  grid-area: 1 / 10 / 2 / 12; align-self: end; z-index: 1;
  border: .45rem solid var(--cream); border-bottom-width: 1rem;
  transform: translateY(16%) rotate(8deg); box-shadow: 2px 4px 10px #39271f38;
}
.bookmark-set {
  grid-area: 1 / 5 / 2 / 7; align-self: end; z-index: 2; position: relative;
  width: clamp(5.6rem, 10vw, 8.2rem); margin: 0 0 .8rem; transform: rotate(-11deg);
}
.book {
  position: relative; width: 100%; aspect-ratio: .8; padding: .9rem .5rem;
  border: 1px solid #54291e; border-left: .35rem double #d5a177; border-radius: 1px 3px 3px 1px;
  background: #8b3329; color: var(--cream); box-shadow: 4px 6px 0 #d6bc9a, 5px 8px 8px #2c201d3b;
  font: 1.18rem/1.05 var(--serif); text-align: center; cursor: pointer;
}
.bookmark {
  position: absolute; left: 51%; top: -1.55rem; width: 2.2rem; height: 3.1rem;
  background: #e1ad51; border: 1px solid #ac7636; transform: rotate(9deg);
  transform-origin: 50% 0;
  transition: transform .3s ease, rotate .3s ease, translate .3s ease;
}
.eyes { display: flex; gap: 2px; justify-content: center; padding-top: .3rem; }
.eyes i { display: grid; place-items: center; width: .65rem; height: .8rem; border-radius: 50%; background: #fff8db; }
.eyes i::after { content: ""; width: .3rem; height: .39rem; border-radius: 50%; background: #302822; transition: translate .25s ease; }
.bookmark-set:has(.book[aria-pressed="true"]) .bookmark { transform: translateY(-.85rem) rotate(15deg); }
.bookmark-set:has(.book[aria-pressed="true"]) i::after { translate: 2px 0; }
@media (hover:hover) {
  .bookmark-set:has(.book:hover) .bookmark { transform: translateY(-.85rem) rotate(15deg); }
  .bookmark-set:has(.book:hover) i::after { translate: 2px 0; }
}
.kitchen { border-block: 1px solid var(--rule); padding-block: clamp(3rem, 8vw, 7rem); align-items: center; }
.kitchen-copy { grid-area: 1 / 1 / 2 / 5; align-self: start; padding-top: .75rem; }
.kitchen-copy p, .memory-copy p, .visit-copy p { margin-top: .8rem; }
.kitchen-photo { grid-area: 1 / 5 / 2 / 10; }
.plate {
  grid-area: 1 / 9 / 2 / 13; align-self: start; z-index: 1; aspect-ratio: 1;
  display: grid; place-items: center; border-radius: 50%; margin-top: 10%;
  background: #e8dfcd; border: .24rem solid #bb9e6d; box-shadow: inset 0 0 0 .45rem #f5e9d4, 4px 8px 16px #53483329;
}
.plate img { width: 76%; aspect-ratio: 1; border-radius: 50%; }
.recipe {
  grid-area: 1 / 3 / 2 / 7; align-self: end; z-index: 2; margin-bottom: 5%;
  transform: rotate(-8deg); padding: clamp(.7rem, 2vw, 1.6rem); box-shadow: 2px 4px 12px #5446352d;
  background: repeating-linear-gradient(#f9efcf 0 1.37rem, #e3cda6 1.38rem 1.43rem);
  color: #54342c; font: italic clamp(.95rem, 2.4vw, 1.8rem)/1.15 var(--serif);
}
.recipe ul { margin: .5rem 0 0; padding-left: 1rem; }
.memory { align-items: start; padding-block: clamp(3rem, 8vw, 7rem); }
.memory-copy { grid-column: 2 / 6; }
.memory-box { grid-column: 6 / 12; background: #b89468; border: .5rem solid #a38360; box-shadow: 5px 7px 0 #c5af94; }
.memory-box summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem; list-style: none; padding: 1rem; background: var(--pulp); cursor: pointer; }
.memory-box summary::-webkit-details-marker { display: none; }
.box-label { background: var(--cream); color: var(--blue); padding: .25rem .7rem; font: italic 1.35rem var(--serif); }
.box-action { text-decoration: underline; }
.close-label, .memory-box[open] .open-label { display: none; }
.memory-box[open] .close-label { display: inline; }
.prints { display: grid; grid-template-columns: 1fr 1fr; padding: 1.3rem; }
.prints img { aspect-ratio: 1; border: .35rem solid var(--cream); border-bottom-width: .8rem; box-shadow: 3px 5px 8px #3d271859; }
.prints img:first-child { transform: rotate(-5deg); }
.prints img:last-child { transform: rotate(5deg); }
.visit-object { padding-block: clamp(3rem, 7vw, 6rem); align-items: center; border-top: 1px solid var(--rule); }
.visit-object > img { grid-column: 2 / 7; max-height: 34rem; }
.visit-copy { grid-column: 8 / 13; }
.visit-copy .quiet { margin-top: .65rem; }
.memo {
  display: inline-grid; gap: .2rem; background: var(--cream); color: var(--red);
  text-align: center; padding: .55rem .8rem; box-shadow: 3px 4px 0 #d2c4a7;
  border-top: .3rem solid var(--red); transform: rotate(5deg); margin-bottom: 1.3rem;
}
.memo span { font: .65rem system-ui; letter-spacing: .06em; }
.memo b { font: 1rem/.63 Georgia, serif; letter-spacing: .33em; }
button:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
@media (max-width:700px) {
  .frame { width: 89%; }
  .header { min-height: 65px; }
  .wordmark { font-size: 1.55rem; }
  .cover, .kitchen, .memory, .visit-object { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cover { row-gap: 1.75rem; padding-bottom: 3rem; }
  .cover-copy { grid-area: 1 / 1 / 2 / 5; }
  .cover-image { grid-area: 2 / 1 / 3 / 5; }
  .cover-detail { grid-area: 2 / 4 / 3 / 5; }
  .bookmark-set { grid-area: 2 / 1 / 3 / 2; margin: 0 0 -.8rem -.2rem; }
  .book { font-size: .95rem; }
  .kitchen-copy { grid-area: 1 / 1 / 2 / 5; padding-bottom: 1.5rem; }
  .kitchen-photo { grid-area: 2 / 1 / 3 / 4; }
  .plate { grid-area: 2 / 3 / 3 / 5; margin-top: 12%; }
  .recipe { grid-area: 2 / 2 / 3 / 5; justify-self: end; margin: 0; }
  .memory { row-gap: 1.4rem; }
  .memory-copy, .memory-box { grid-column: 1 / 5; }
  .visit-object > img { grid-column: 1 / 3; }
  .visit-copy { grid-column: 3 / 5; padding-left: .3rem; }
  .visit-copy h2 { font-size: clamp(1.75rem, 6.5vw, 2.55rem); }
  .memo { margin-bottom: .8rem; }
}
@media (prefers-reduced-motion: reduce) { .bookmark, .eyes i::after { transition: none; } }

:root {
  --paper: #f7efdf;
  --blue: #193c92;
  --red: #a83626;
  --cream: #fff9ec;
  --moss: #d9dfc5;
  --yellow: #edc659;
}
.cover { padding-block: clamp(2.5rem, 5vw, 5rem); }
.cover-copy { grid-column-end: 6; }
.cover-copy p { margin-top: 1rem; }
.cover-copy .identity { font-weight: 500; color: var(--ink); }
.cover-image { transform: none; border: .55rem solid #cfaa7b; border-radius: 44% 44% 5px 5px / 43% 43% 5px 5px; overflow: hidden; background: #c99162; }
.cover-image img { aspect-ratio: 1.12; }
.cover-detail { grid-column: 11 / 13; }
.bookmark-set { grid-column: 6 / 8; }
.book { background: var(--red); }
.bookmark-note { position: absolute; z-index: 1; top: 85%; left: 0; width: min(13rem, 54vw); background: var(--yellow); padding: .7rem; box-shadow: 3px 5px 0 #573d3238; color: var(--ink); }
.start { display: inline-flex; align-items: center; min-height: 44px; margin-top: 1rem; padding: .35rem .9rem; background: var(--blue); color: white; border-radius: 1.3rem 1.3rem .2rem .2rem; text-decoration: none; }
.journeys { border-top: 1px solid var(--rule); padding-block: clamp(4rem, 8vw, 7rem); }
.journeys > p, .mari-section > p { max-width: 42rem; margin-top: 1rem; }
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2.5rem); margin-top: 2rem; }
.path { padding: clamp(1rem, 2.3vw, 1.8rem); border-radius: 3.1rem .25rem 2.5rem .25rem; }
.path.map { background: var(--moss); }
.path.session { background: #f1c7ae; }
.path img { aspect-ratio: 1.65; border-radius: 2.4rem .2rem 0 0; }
.path h3 { font: 400 clamp(2rem, 3.2vw, 3.25rem)/1.1 var(--serif); color: var(--blue); margin: 1rem 0 .4rem; }
.fieldbook { padding: clamp(1.4rem, 5vw, 4rem); background: repeating-linear-gradient(0deg,#fff9ec 0 29px,#e9dcc4 29px 30px); border-left: .55rem solid var(--yellow); border-radius: .2rem 2rem 2rem .2rem; }
.fieldbook ol { padding-left: 1.45rem; display: grid; gap: .8rem; }
.mari-section { padding-block: clamp(3rem, 7vw, 6rem); }
.mari-section details { max-width: 44rem; margin-top: 1.6rem; padding: 1rem 1.25rem; background: #f1ddad; }
.mari-section summary { cursor: pointer; font: 1.45rem var(--serif); color: var(--blue); }
.mari-section details p { margin-top: .8rem; }
.visit-object { background: repeating-conic-gradient(#e1dfc8 0% 25%,#f4ead8 0% 50%) 0 0 / 46px 46px; padding-inline: 1rem; border-radius: 3rem 3rem .3rem .3rem; }
.visit-object > img { border-radius: 3rem 3rem .25rem .25rem; }
.visit-copy { background: var(--cream); padding: clamp(.7rem, 2vw, 1.6rem); }
.booking label:not(:first-of-type) { margin-top: 1rem; }
.booking select { display: block; max-width: 100%; min-height: 44px; font: inherit; color: inherit; background: var(--cream); border: 1px solid var(--rule); }
@media (max-width:700px) {
  .cover-copy { grid-column: 1 / 5; }
  .cover-image { grid-column: 1 / 5; }
  .cover-detail { grid-column: 4 / 5; }
  .bookmark-set { grid-column: 1 / 2; }
  .paths { grid-template-columns: 1fr; }
  .visit-object { padding-inline: .65rem; }
}

/* The objects sit on the page like paper on a table. */
.fieldbook {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(11rem, 16rem);
  align-items: center;
  gap: clamp(1.25rem, 4vw, 4rem);
}
.pocket-map { text-align: center; justify-self: center; width: 100%; }
.pocket-map summary {
  width: fit-content; max-width: 100%; margin-inline: auto; padding: .45rem .5rem;
  list-style: none; cursor: pointer; color: var(--blue);
}
.pocket-map summary::-webkit-details-marker, .mari-letter summary::-webkit-details-marker { display: none; }
.map-paper {
  display: grid; grid-template-columns: repeat(3, 1fr); width: clamp(8.5rem, 17vw, 12rem);
  aspect-ratio: 5 / 3; perspective: 35rem; transform: rotate(-7deg);
  filter: drop-shadow(1px 4px 2px #54452c38);
}
.map-paper > span {
  background-image: linear-gradient(var(--fold-tone), var(--fold-tone)), url('images/pocket-map.svg');
  background-size: 100% 100%, 300% 100%; background-repeat: no-repeat;
}
.fold-west { --fold-tone: #78542e20; background-position: center, left; transform-origin: right; transform: rotateY(-61deg); }
.fold-center { --fold-tone: transparent; background-position: center; }
.fold-east { --fold-tone: #78542e32; background-position: center, right; transform-origin: left; transform: rotateY(57deg); }
.pocket-map[open] .fold-west { transform: rotateY(-7deg); }
.pocket-map[open] .fold-east { transform: rotateY(6deg); }
.pocket-map[open] .map-paper { transform: rotate(-2deg); }
.map-action { display: inline-block; margin-top: .6rem; font-size: .95rem; text-decoration: underline; text-underline-offset: .3em; }
.when-flat, .pocket-map[open] .when-folded { display: none; }
.pocket-map[open] .when-flat { display: inline; }
.pocket-map p { max-width: 20em; margin: .5rem auto 0; color: var(--ink); text-wrap: pretty; }
.mari-section .mari-letter { background: #f3dfb4; border-radius: .15rem .4rem .35rem .25rem; box-shadow: 2px 3px 0 #bca5804a; }
.mari-letter summary { display: flex; align-items: center; gap: 1.1rem; list-style: none; min-height: 44px; }
.envelope {
  position: relative; isolation: isolate; width: 3.4rem; height: 2.15rem; flex: none;
  background: #be7862; border-radius: 2px; transform: rotate(-6deg); box-shadow: 1px 2px 2px #53372238;
}
.envelope i { position: absolute; inset: .12rem .3rem .25rem; background: repeating-linear-gradient(#fff5d8 0 5px,#ded5bb 5px 6px); border: 2px solid #fff5d8; }
.envelope::before, .envelope::after { position: absolute; content: ''; inset: 0; }
.envelope::before { z-index: 2; background: #ce8f72; clip-path: polygon(0 0, 100% 0, 50% 61%); transform-origin: center top; }
.envelope::after { background: linear-gradient(38deg,#efbc9a 49%,#e5a98a 50%); clip-path: polygon(0 0, 50% 59%, 100% 0, 100% 100%, 0 100%); border-radius: 2px; }
.mari-letter[open] .envelope::before { transform: scaleY(-.66); z-index: -1; }
.mari-letter[open] .envelope i { transform: translateY(-.45rem) rotate(3deg); }
.mari-letter[open] summary { margin-bottom: 1rem; }
.memo { position: relative; transform-origin: 50% .15rem; }
.memo::before { content: ''; position: absolute; top: -.52rem; left: calc(50% - .18rem); width: .36rem; height: .36rem; border-radius: 50%; background: var(--blue); box-shadow: 0 1px 1px #49382250; }
@media (max-width: 700px) {
  .fieldbook { grid-template-columns: 1fr; }
  .pocket-map { width: min(100%, 20rem); }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; scroll-padding-top: 1.25rem; }
  .bookmark { animation: bookmark-bob 5.5s ease-in-out infinite; }
  @keyframes bookmark-bob {
    0%, 82%, 100% { translate: 0 0; rotate: 0deg; }
    88% { translate: 0 -.22rem; rotate: 5deg; }
    94% { translate: 0 .04rem; rotate: -2deg; }
  }
  .map-paper, .fold-west, .fold-east, .envelope::before, .envelope i {
    transition: transform 440ms cubic-bezier(.22,.72,.25,1);
  }
  .bookmark-note:not([hidden]), .pocket-map[open] p { animation: unfold-note 350ms ease-out both; }
  @keyframes unfold-note { from { opacity: .55; translate: 0 5px; } to { opacity: 1; translate: 0 0; } }
  .arrived.path { animation: print-settles 560ms cubic-bezier(.18,.76,.26,1) backwards; }
  @keyframes print-settles { from { translate: 0 12px; } to { translate: 0 0; } }
  .arrived .memo { animation: pinned-paper 900ms ease-out; }
  @keyframes pinned-paper { 0% { transform: rotate(-6deg); } 36% { transform: rotate(9deg); } 68% { transform: rotate(3deg); } 100% { transform: rotate(5deg); } }
  @supports (animation-timeline: view()) {
    .cover-detail { animation: photo-drift linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
    @keyframes photo-drift { from { translate: 0 0; rotate: 0deg; } to { translate: 0 -15px; rotate: -3deg; } }
    .bookmark-set { animation: bookmark-drift linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
    @keyframes bookmark-drift {
      from { translate: 0 0; rotate: 0deg; }
      to { translate: 0 -1.4rem; rotate: 4deg; }
    }
    .path img, .visit-object > img {
      animation: paper-arrives linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
    @keyframes paper-arrives {
      from { translate: 0 1.25rem; rotate: -1.2deg; scale: .985; }
      to { translate: 0 0; rotate: 0deg; scale: 1; }
    }
    .memo { animation: memo-settles linear both; animation-timeline: view(); animation-range: entry 0% cover 42%; }
    @keyframes memo-settles {
      from { translate: 0 1rem; rotate: -5deg; }
      to { translate: 0 0; rotate: 0deg; }
    }
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .pocket-map:not([open]) summary:hover .fold-east { transform: rotateY(43deg); }
  .mari-letter:not([open]) summary:hover .envelope i { transform: translateY(-.22rem); }
}
