All templates

Food & drink

Good Mood Donuts

A loud, maximal pop site for a donut shop: chunky type, sticker badges, rotated menu cards, blob-cut photos and a box builder.

How to use it

Start a project

Use this template, then tell Spearbot about your business. It rewrites the copy, sections and colours to fit.

Or borrow the layout

In any project, write “Restyle my homepage like @pop-food-site”. Your content stays; the structure changes.

Keep editing

Every change is a normal chat message, with version history, review links and publishing.

View the HTMLShow
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Good Mood Donuts — Fried fresh every morning</title>
<meta name="description" content="Good Mood Donuts: small-batch donuts fried fresh every morning. See today's menu, build a box and order ahead for pickup.">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Bagel+Fat+One&family=Rubik:wght@400;500;700;800&display=swap" rel="stylesheet">
<style>
:root {
  --pink: #FF3D8B;
  --pink-deep: #D81B6A;
  --yellow: #FFD23F;
  --blue: #2F4BFF;
  --mint: #6FE3B4;
  --cream: #FFF6E6;
  --ink: #1B1033;
  --font-display: "Bagel Fat One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-body: "Rubik", system-ui, sans-serif;
  --radius: 28px;
  --gutter: clamp(16px, 4vw, 56px);
  --shadow: 6px 6px 0 var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.5; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 4px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 60; border-radius: 999px; }
.skip:focus { left: 8px; }
.wrap { padding-inline: var(--gutter); }
.display { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; line-height: .9; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 26px; border-radius: 999px; border: 3px solid var(--ink); background: var(--pink); color: #fff; font: 800 17px/1 var(--font-body); text-decoration: none; box-shadow: var(--shadow); cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; white-space: nowrap; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.btn.alt { background: #fff; color: var(--ink); }
.btn.blue { background: var(--blue); }

/* Nav */
.nav-wrap { position: sticky; top: 12px; z-index: 40; padding-inline: var(--gutter); margin-top: 12px; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #fff; border: 3px solid var(--ink); border-radius: 999px; padding: 8px 8px 8px 18px; box-shadow: var(--shadow); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-size: 22px; }
.brand svg { flex: none; }
.nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav ul a { display: block; padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 700; }
.nav ul a:hover { background: var(--yellow); }
.nav .btn { padding: 12px 20px; box-shadow: none; border-width: 3px; }

/* Hero */
.hero { position: relative; background: var(--yellow); margin-top: -96px; padding: 150px var(--gutter) clamp(56px, 7vw, 96px); overflow: hidden; border-bottom: 3px solid var(--ink); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--ink) 1.4px, transparent 1.6px); background-size: 22px 22px; opacity: .12; pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero h1 { margin: 0; font-size: clamp(64px, 11.5vw, 184px); color: var(--pink); text-shadow: 4px 4px 0 var(--ink), 8px 8px 0 var(--blue); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; }
.hero h1 span { display: block; }
.hero h1 .tilt { transform: rotate(-3deg); transform-origin: left; color: #fff; }
.hero-lede { max-width: 30ch; font-size: clamp(18px, 1.7vw, 22px); font-weight: 500; margin: 28px 0 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-art { position: relative; aspect-ratio: 1 / 1; }
.blob { position: absolute; inset: 4% 4% 10% 2%; border: 4px solid var(--ink); border-radius: 58% 42% 46% 54% / 46% 56% 44% 54%; overflow: hidden; box-shadow: 12px 12px 0 var(--ink); background: var(--pink); animation: wobble 9s ease-in-out infinite; }
.blob img { width: 100%; height: 100%; object-fit: cover; }
.circle { position: absolute; width: 38%; aspect-ratio: 1; right: -2%; bottom: -2%; border-radius: 50%; border: 4px solid var(--ink); overflow: hidden; box-shadow: 8px 8px 0 var(--ink); transform: rotate(8deg); }
.circle img { width: 100%; height: 100%; object-fit: cover; }
.sticker { position: absolute; left: -4%; top: -2%; width: 34%; aspect-ratio: 1; animation: spin 18s linear infinite; }
.sticker text { font: 800 15px var(--font-body); letter-spacing: 3px; text-transform: uppercase; fill: var(--ink); }
.badge { position: absolute; display: grid; place-items: center; text-align: center; font-family: var(--font-display); line-height: .95; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.badge.star { right: 4%; top: 2%; width: 26%; aspect-ratio: 1; background: var(--mint); clip-path: polygon(50% 0, 61% 14%, 79% 9%, 82% 27%, 100% 32%, 91% 49%, 100% 66%, 82% 71%, 79% 90%, 61% 85%, 50% 100%, 39% 85%, 21% 90%, 18% 71%, 0 66%, 9% 49%, 0 32%, 18% 27%, 21% 9%, 39% 14%); box-shadow: none; border: 0; font-size: clamp(14px, 1.5vw, 22px); transform: rotate(10deg); }

/* Marquee */
.ticker { background: var(--blue); color: #fff; border-bottom: 3px solid var(--ink); overflow: hidden; }
.ticker-track { display: flex; width: max-content; animation: slide 26s linear infinite; }
.ticker span { font-family: var(--font-display); font-size: clamp(26px, 3.6vw, 48px); padding: 14px 24px; white-space: nowrap; }
.ticker span:nth-child(3n+2) { color: var(--yellow); }
.ticker span:nth-child(3n) { color: var(--pink); }

/* Menu */
section { scroll-margin-top: 100px; }
.menu { padding-block: clamp(72px, 10vw, 140px); }
.head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: clamp(36px, 5vw, 64px); }
.head h2 { margin: 0; font-size: clamp(52px, 8vw, 120px); }
.head h2 em { font-style: normal; color: var(--pink); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; }
.head p { max-width: 34ch; margin: 0; font-weight: 500; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); list-style: none; margin: 0; padding: 0; }
.card { position: relative; background: #fff; border: 3px solid var(--ink); border-radius: var(--radius); padding: 14px 14px 20px; box-shadow: var(--shadow); transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.card:nth-child(1) { transform: rotate(-2.5deg); background: #FFE3EF; }
.card:nth-child(2) { transform: rotate(2deg) translateY(18px); background: #E6EAFF; }
.card:nth-child(3) { transform: rotate(-1.5deg); background: #FFF0B8; }
.card:nth-child(4) { transform: rotate(2.5deg) translateY(12px); background: #DDF8EC; }
.card:hover { transform: rotate(0) translateY(-6px) scale(1.02); }
.card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 20px; border: 3px solid var(--ink); }
.card h3 { margin: 16px 4px 4px; font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1; }
.card p { margin: 0 4px; font-size: 15px; }
.price { position: absolute; top: -18px; right: -14px; width: 70px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); border: 3px solid var(--ink); font: 800 18px var(--font-body); transform: rotate(12deg); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 4px 0; padding: 0; list-style: none; }
.tags li { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; border: 2px solid var(--ink); background: #fff; }

/* Boxes */
.boxes { background: var(--pink); color: #fff; border-block: 3px solid var(--ink); padding-block: clamp(72px, 10vw, 140px); position: relative; overflow: hidden; }
.boxes::after { content: ""; position: absolute; width: 520px; aspect-ratio: 1; right: -160px; top: -160px; border-radius: 50%; border: 70px solid rgba(255,255,255,.12); pointer-events: none; }
.boxes .head h2 { color: var(--yellow); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 5px 5px 0 var(--ink); }
.box-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center; position: relative; z-index: 1; }
.box-photo { border: 4px solid var(--ink); border-radius: 40px; overflow: hidden; box-shadow: 12px 12px 0 var(--ink); transform: rotate(-3deg); background: var(--yellow); }
.box-photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
fieldset { border: 0; margin: 0; padding: 0; }
legend { font: 800 20px var(--font-body); margin-bottom: 14px; }
.sizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.size input { position: absolute; opacity: 0; pointer-events: none; }
.size label { display: block; height: 100%; cursor: pointer; background: #fff; color: var(--ink); border: 3px solid var(--ink); border-radius: 22px; padding: 16px; box-shadow: 4px 4px 0 var(--ink); transition: transform .15s ease, background .15s ease; }
.size label b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 40px; line-height: 1; }
.size label span { display: block; font-weight: 700; margin-top: 6px; }
.size label small { display: block; margin-top: 2px; font-size: 14px; color: #4A3D63; }
.size input:checked + label { background: var(--yellow); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.size input:focus-visible + label { outline: 4px solid var(--blue); outline-offset: 3px; }
.box-total { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 28px; }
.box-total output { font-family: var(--font-display); font-size: 56px; line-height: 1; color: var(--yellow); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; }
.note { margin-top: 14px; font-size: 14px; color: #FFE3EF; }

/* Steps */
.steps { padding-block: clamp(72px, 10vw, 140px); }
.step-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); list-style: none; padding: 0; margin: 0; }
.step-list li { background: #fff; border: 3px solid var(--ink); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.step-list .n { width: 64px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; border: 3px solid var(--ink); font-family: var(--font-display); font-size: 30px; transform: rotate(-8deg); }
.step-list li:nth-child(2) .n { background: var(--pink); }
.step-list li:nth-child(3) .n { background: var(--mint); color: var(--ink); }
.step-list h3 { margin: 18px 0 6px; font-family: var(--font-display); font-weight: 400; font-size: 32px; line-height: 1; }
.step-list p { margin: 0; }

/* Visit */
.visit { padding-bottom: clamp(72px, 10vw, 140px); }
.visit-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 3px solid var(--ink); border-radius: 40px; overflow: hidden; box-shadow: 10px 10px 0 var(--ink); background: var(--blue); color: #fff; }
.visit-copy { padding: clamp(28px, 4vw, 56px); }
.visit-copy h2 { margin: 0 0 20px; font-size: clamp(48px, 6vw, 88px); color: var(--yellow); }
.hours { width: 100%; border-collapse: collapse; margin: 8px 0 28px; font-size: 17px; }
.hours th, .hours td { padding: 10px 0; border-bottom: 2px dashed rgba(255,255,255,.35); text-align: left; }
.hours td { text-align: right; font-weight: 700; }
.hours caption { text-align: left; font-weight: 800; padding-bottom: 4px; }
.visit-photo { position: relative; min-height: 320px; border-left: 3px solid var(--ink); }
.visit-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.visit-photo .badge { left: 20px; bottom: 20px; padding: 14px 18px; background: var(--yellow); color: var(--ink); border-radius: 18px; font-size: 22px; transform: rotate(-4deg); }

footer { background: var(--ink); color: #EDE6FF; padding: 48px var(--gutter) 32px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; align-items: end; }
.foot .big { font-family: var(--font-display); font-size: clamp(56px, 10vw, 150px); line-height: .85; margin: 0; color: var(--pink); }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer a { text-decoration: none; font-weight: 500; }
footer a:hover { color: var(--yellow); }
.legal { margin-top: 32px; font-size: 14px; color: #A99CC7; }

@keyframes slide { to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes wobble { 0%, 100% { border-radius: 58% 42% 46% 54% / 46% 56% 44% 54%; } 50% { border-radius: 44% 56% 58% 42% / 56% 44% 56% 44%; } }

@media (max-width: 980px) {
  .nav ul { display: none; }
  .hero-grid, .box-grid, .visit-card { grid-template-columns: 1fr; }
  .hero-art { max-width: 520px; width: 100%; margin-inline: auto; }
  .cards { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .step-list { grid-template-columns: 1fr; }
  .visit-photo { border-left: 0; border-top: 3px solid var(--ink); }
}
@media (max-width: 520px) {
  .brand span { display: none; }
  .cards { grid-template-columns: 1fr; }
  .card:nth-child(n) { transform: rotate(0); }
  .price { right: -6px; width: 62px; }
  .sizes { grid-template-columns: 1fr; }
  .hero h1 { -webkit-text-stroke: 2px var(--ink); text-shadow: 3px 3px 0 var(--ink), 5px 5px 0 var(--blue); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
</style>
</head>
<body>
<a class="skip" href="#main">Skip to content</a>
<div class="nav-wrap">
  <header class="nav">
    <a class="brand" href="#top" aria-label="Good Mood Donuts, home">
      <svg width="34" height="34" viewBox="0 0 34 34" aria-hidden="true"><circle cx="17" cy="17" r="15" fill="#FF3D8B" stroke="#1B1033" stroke-width="3"/><circle cx="17" cy="17" r="5" fill="#FFF6E6" stroke="#1B1033" stroke-width="3"/><path d="M9 11l2 1M24 9l-1 2M25 21l-2-1M11 24l1-2" stroke="#FFD23F" stroke-width="2.5" stroke-linecap="round"/></svg>
      <span>Good Mood</span>
    </a>
    <nav aria-label="Main">
      <ul>
        <li><a href="#menu">Menu</a></li>
        <li><a href="#boxes">Boxes</a></li>
        <li><a href="#how">How it works</a></li>
        <li><a href="#visit">Visit</a></li>
      </ul>
    </nav>
    <a class="btn" href="#boxes">Order ahead</a>
  </header>
</div>

<main id="main">
  <section class="hero" id="top" aria-labelledby="hero-title">
    <div class="hero-grid">
      <div>
        <h1 id="hero-title" class="display"><span>Good</span><span class="tilt">Mood</span><span>Donuts</span></h1>
        <p class="hero-lede">Small-batch donuts, fried fresh every morning and glazed by hand. Come early, the pink ones go first.</p>
        <div class="hero-cta">
          <a class="btn" href="#boxes">Build a box</a>
          <a class="btn alt" href="#menu">See today's menu</a>
        </div>
      </div>
      <div class="hero-art">
        <div class="blob"><img src="/library/media/pop-food-site/hero-pink.jpg" alt="Close-up of a pink glazed donut covered in rainbow sprinkles" width="960" height="640"></div>
        <div class="circle"><img src="/library/media/pop-food-site/trio.jpg" alt="Three sprinkled donuts on a white table" width="960" height="640"></div>
        <svg class="sticker" viewBox="0 0 200 200" aria-hidden="true">
          <circle cx="100" cy="100" r="96" fill="#fff" stroke="#1B1033" stroke-width="4"/>
          <defs><path id="ring" d="M100,100 m-70,0 a70,70 0 1,1 140,0 a70,70 0 1,1 -140,0"/></defs>
          <text><textPath href="#ring">Fried fresh · every morning · </textPath></text>
          <circle cx="100" cy="100" r="26" fill="#FF3D8B" stroke="#1B1033" stroke-width="4"/>
        </svg>
        <div class="badge star" aria-hidden="true">Hot<br>now!</div>
      </div>
    </div>
  </section>

  <div class="ticker" aria-hidden="true">
    <div class="ticker-track">
      <span>Glazed</span><span>Sprinkled</span><span>Filled</span><span>Vegan options</span><span>Coffee too</span><span>Boxes to share</span>
      <span>Glazed</span><span>Sprinkled</span><span>Filled</span><span>Vegan options</span><span>Coffee too</span><span>Boxes to share</span>
    </div>
  </div>

  <section class="menu wrap" id="menu" aria-labelledby="menu-title">
    <div class="head">
      <h2 id="menu-title" class="display">Today's <em>menu</em></h2>
      <p>Four favourites every day, plus a weekly special. Ask at the counter about allergens.</p>
    </div>
    <ul class="cards">
      <li class="card">
        <span class="price">$3.50</span>
        <img src="/library/media/pop-food-site/hero-pink.jpg" alt="Pink glazed donut with sprinkles" width="960" height="640" loading="lazy">
        <h3>Pink Party</h3>
        <p>Strawberry glaze, rainbow sprinkles.</p>
        <ul class="tags"><li>Best seller</li></ul>
      </li>
      <li class="card">
        <span class="price">$3.75</span>
        <img src="/library/media/pop-food-site/choc.jpg" alt="Chocolate donut with colourful sprinkles" width="960" height="640" loading="lazy">
        <h3>Cocoa Bomb</h3>
        <p>Dark chocolate dip, crunchy sprinkles.</p>
        <ul class="tags"><li>Chocolate</li></ul>
      </li>
      <li class="card">
        <span class="price">$3.25</span>
        <img src="/library/media/pop-food-site/hands.jpg" alt="Hands holding a sugared donut broken in half" width="960" height="631" loading="lazy">
        <h3>Sugar Ring</h3>
        <p>Cinnamon sugar, warm from the fryer.</p>
        <ul class="tags"><li>Vegan</li><li>Classic</li></ul>
      </li>
      <li class="card">
        <span class="price">$4.00</span>
        <img src="/library/media/pop-food-site/box.jpg" alt="Assorted decorated donuts including a smiley face" width="960" height="574" loading="lazy">
        <h3>Smile Special</h3>
        <p>This week's decorated donut. Changes every Monday.</p>
        <ul class="tags"><li>Weekly</li></ul>
      </li>
    </ul>
  </section>

  <section class="boxes" id="boxes" aria-labelledby="boxes-title">
    <div class="wrap">
      <div class="head">
        <h2 id="boxes-title" class="display">Build a box</h2>
        <p>Pick a size, order before 9pm, and pick it up warm the next morning.</p>
      </div>
      <div class="box-grid">
        <div class="box-photo"><img src="/library/media/pop-food-site/box.jpg" alt="A tray of colourful decorated donuts" width="960" height="574" loading="lazy"></div>
        <form id="box-form">
          <fieldset>
            <legend>Choose your box</legend>
            <div class="sizes">
              <div class="size"><input type="radio" name="size" id="s6" value="18" checked><label for="s6"><b>6</b><span>Half dozen</span><small>$18</small></label></div>
              <div class="size"><input type="radio" name="size" id="s12" value="32"><label for="s12"><b>12</b><span>Dozen</span><small>$32</small></label></div>
              <div class="size"><input type="radio" name="size" id="s24" value="60"><label for="s24"><b>24</b><span>Party box</span><small>$60</small></label></div>
            </div>
          </fieldset>
          <div class="box-total">
            <span>Total <output id="total" for="s6 s12 s24">$18</output></span>
            <button class="btn blue" type="submit">Order for pickup</button>
          </div>
          <p class="note" id="box-status" role="status" aria-live="polite">Mix any flavours from today's menu. Prices are examples.</p>
        </form>
      </div>
    </div>
  </section>

  <section class="steps wrap" id="how" aria-labelledby="how-title">
    <div class="head"><h2 id="how-title" class="display">Easy <em>as</em> 1, 2, 3</h2></div>
    <ol class="step-list">
      <li><span class="n">1</span><h3>Pick a box</h3><p>Choose a size and your flavours online, any time before 9pm.</p></li>
      <li><span class="n">2</span><h3>We fry at dawn</h3><p>Your box is made the next morning, in the same batch as the counter.</p></li>
      <li><span class="n">3</span><h3>Grab it warm</h3><p>Skip the line. Your name is on the box from 7am.</p></li>
    </ol>
  </section>

  <section class="visit wrap" id="visit" aria-labelledby="visit-title">
    <div class="visit-card">
      <div class="visit-copy">
        <h2 id="visit-title" class="display">Come say hi</h2>
        <p>12 Sprinkle Street, Your Town</p>
        <table class="hours">
          <caption>Opening hours</caption>
          <tbody>
            <tr><th scope="row">Monday to Friday</th><td>7am – 2pm</td></tr>
            <tr><th scope="row">Saturday</th><td>7am – 4pm</td></tr>
            <tr><th scope="row">Sunday</th><td>8am – 1pm</td></tr>
          </tbody>
        </table>
        <a class="btn" href="#boxes">Order ahead</a>
      </div>
      <div class="visit-photo">
        <img src="/library/media/pop-food-site/trio.jpg" alt="Three sprinkled donuts on a white table" width="960" height="640" loading="lazy">
        <span class="badge" aria-hidden="true">Until they're gone!</span>
      </div>
    </div>
  </section>
</main>

<footer>
  <div class="foot">
    <p class="big" aria-hidden="true">Stay sweet.</p>
    <nav aria-label="Footer">
      <ul>
        <li><a href="#menu">Menu</a></li>
        <li><a href="#boxes">Build a box</a></li>
        <li><a href="#visit">Hours &amp; address</a></li>
        <li><a href="mailto:hello@example.com">hello@example.com</a></li>
      </ul>
    </nav>
  </div>
  <p class="legal">© Good Mood Donuts. Made fresh, eaten fast.</p>
</footer>
<script>
(function () {
  var form = document.getElementById("box-form");
  var total = document.getElementById("total");
  var status = document.getElementById("box-status");
  form.addEventListener("change", function () {
    var picked = form.querySelector("input[name=size]:checked");
    total.textContent = "$" + picked.value;
  });
  form.addEventListener("submit", function (event) {
    event.preventDefault();
    status.textContent = "Demo only: connect this form to your ordering system.";
  });
})();
</script>
</body>
</html>